Bookmark extends Element
API model used to edit bookmarks.
Methods
remove()
Removes the Element itself.
IF ALL ELEMENTS ARE REMOVED, AN ERROR MAY OCCUR IN SUBSEQUENT OPERATIONS.
var bookmark = editor.getAPIModelById('id'); bookmark.remove();
replace(html)
- html <String> The HTML String to replace.
Replaces the element itself with the HTML String passed as an argument.
var bookmark = editor.getAPIModelById('id'); bookmark.replace('<span>Bookmark replaced</span>');