Label extends Element
The API model used to edit the Label.
Methods
remove()
Removes the Element itself.
IF ALL ELEMENTS ARE REMOVED, ERRORS MAY OCCUR IN SUBSEQUENT OPERATIONS.
var label = editor.getAPIModelById('id'); label.remove();
replace(html)
- html <String> The HTML String to replace.
Replaces the element itself with the HTML String passed as an argument.
var label = editor.getAPIModelById('id'); label.replace('<span>Label replaced</span>');