Textarea extends Element

The API model used to edit the Textarea.

Methods

remove()

Removes the Element itself.

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

replace(html)

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

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