List extends Element

목록을 편집하는데 사용되는 API 모델입니다.

Methods

remove()

Element 자신을 제거합니다.

var list = editor.getAPIModelById('id');
list.remove();

replace(html)

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

var list = editor.getAPIModelById('id');
list.replace('<p><span>List replaced</span></p>');