HorizontalLine extends Element

가로줄을 편집하는데 사용되는 API 모델입니다.

Methods

remove()

Element 자신을 제거합니다.

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

replace(html)

Element 자신을 인자로 넘겨받은 HTML String으로 교체합니다.

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