Page tree

Versions Compared

Key

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

Quote extends Element

인용기호를 편집하는데 사용되는 API 모델입니다.

Methods

Table of Contents
maxLevel3
minLevel3

append(html)

  • html <String> 추가할 HTML String.

...

Code Block
languagejs
themeEmacs
var cell = editor.getAPIModelById('id');
cell.append('<span>TEXT</span>');

prepend(html)

  • html <String> 추가할 HTML String.

...

Code Block
languagejs
themeEmacs
var cell = editor.getAPIModelById('id');
cell.prepend('<span>TEXT</span>');

remove()

Element 자신을 제거합니다.

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

replace(html)

  • html <String> 교체할 HTML String.

...

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

setText(text)

  • text <String> 셀 내부에 설정할 Text 문자열

...