Bookmark extends Element

API model used to edit bookmarks.

Methods

remove()

Removes the Element itself.

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

replace(html)

Replaces the element itself with the HTML String passed as an argument.

var bookmark = editor.getAPIModelById('id');
bookmark.replace('<span>Bookmark replaced</span>');