Label extends Element

The API model used to edit the Label.

Methods

remove()

Removes the Element itself.

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

replace(html)

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

var label = editor.getAPIModelById('id');
label.replace('<span>Label replaced</span>');