Button extends Element

The API model used to edit the Button.

Methods

remove()

Removes the Element itself.

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

replace(html)

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

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