Break extends Element
The API model used to edit breaks.
Methods
remove()
Removes the Element itself.
모든 ELEMENT를 제거할 경우 이후의 작업에서 오류가 발생할 수 있습니다.
var br = editor.getAPIModelById('id'); br.remove();
replace(html)
- html <String> The HTML String to replace.
Replaces the element itself with the HTML String passed as an argument.
var br = editor.getAPIModelById('id'); br.replace('<span>Break replaced</span>');