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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Current »

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>');
  • No labels