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