Page tree

Versions Compared

Key

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

...

remove()

Element 자신을 제거합니다.

Status
subtletrue
colourRed
title모든 Element를 제거할 경우 이후의 작업에서 오류가 발생할 수 있습니다.

Code Block
languagejs
themeEmacs
var bookmark = editor.getAPIModelById('id');
bookmark.remove();

...

  • html <String> 교체할 HTML String.

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

Code Block
languagejs
themeEmacs
var bookmark = editor.getAPIModelById('id');
bookmark.replace('<p><span>Bookmark<span>Bookmark replaced</span></p>span>');