Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Tab extends Element

탭을 편집하는데 사용되는 API 모델입니다.

Methods

NameParamReturn설명
append{String} html
자식을 뒤에 추가 합니다.
prepend{String} html
자식을 앞에 추가합니다.
setText{String} text
글자를 설정합니다.

Methods

remove()

Element 자신을 제거합니다.

var run = editor.getAPIModelById('id');
run.remove();

replace(html)

  • html <String> 교체할 HTML String.

Element 자신을 파라메터로 넘겨받은 HTML String으로 교체합니다.

var run = editor.getAPIModelById('id');
run.replace('<p><span>Paragraph replaced</span></p>');
  • No labels