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

HorizontalLine extends Element

API model used to edit horizontal lines.

Methods

remove()

Removes the Element itself.

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

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

replace(html)

  • html <String> The HTML String to replace.

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

var hr = editor.getAPIModelById('id');
hr.replace('<p><span>Horizontal line replaced</span></p>');
  • No labels