The API model used to edit the Label.
Removes the Element itself.
var label = editor.getAPIModelById('id'); label.remove(); |
Replaces the element itself with the HTML String passed as an argument.
var label = editor.getAPIModelById('id'); label.replace('<span>Label replaced</span>'); |