Page tree
Skip to end of metadata
Go to start of metadata

List extends Element

The API model used to edit the list.

Methods

remove()

Removes the Element itself.

IF ALL ELEMENTS ARE REMOVED, ERRORS MAY OCCUR IN SUBSEQUENT OPERATIONS.

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

replace(html)

  • html <String> The HTML String to replace.

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>');
  • No labels