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