HorizontalLine extends Element

API model used to edit horizontal lines.

Methods

remove()

Removes the Element itself.

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

replace(html)

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>');