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

Tab extends Element

The API model used to edit tabs.

Methods

remove()

Remove the Element itself.

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

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

replace(html)

  • html <String> The HTML String to replace.

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

var tab = editor.getAPIModelById('id');
tab.replace('<span>Tab replaced</span>');
  • No labels