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