API model used to edit horizontal lines.
Removes the Element itself.
var hr = editor.getAPIModelById('id');
hr.remove(); |
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>'); |