Tab extends Element
탭을 편집하는데 사용되는 API 모델입니다.
Methods
Name | Param | Return | 설명 |
---|---|---|---|
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>');