Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Div extends Element

DIV를 편집하는데 사용되는 API 모델입니다The API model used to edit the DIV.

Methods

Table of Contents
maxLevel3
minLevel3

...

  • 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
languagejs
themeEmacs
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
languagejs
themeEmacs
var div = editor.getAPIModelById('id');
div.prepend('<span>TEXT</span>');

...