DIV를 편집하는데 사용되는 API 모델입니다The API model used to edit the DIV.
Methods
...
- html <String> 추가할 HTML String.
인자로 넘겨받은 HTML String으로 Element의 뒤쪽에 자식으로 추가합니다The HTML String passed as an argument is added as a child at the back of the Element.
Code Block |
---|
|
var div = editor.getAPIModelById('id');
div.append('<span>TEXT</span>'); |
prepend(html)
- html <String> 추가할 HTML <String> HTML String to append.
인자로 넘겨받은 HTML String으로 Element의 앞쪽에 자식으로 추가합니다The HTML String passed as an argument is added as a child to the front of the Element.
Code Block |
---|
|
var div = editor.getAPIModelById('id');
div.prepend('<span>TEXT</span>'); |
...