Page tree
Skip to end of metadata
Go to start of metadata

Textarea extends Element

The API model used to edit the Textarea.

Methods

remove()

Removes the Element itself.

IF ALL ELEMENTS ARE REMOVED, ERRORS MAY OCCUR IN SUBSEQUENT OPERATIONS.

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

replace(html)

  • html <String> The HTML String to replace.

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

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