List extends Element

The API model used to edit the list.

Methods

remove()

Removes the Element itself.

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

replace(html)

Replaces the element itself with the HTML String passed as an argument.

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