API model used to edit bookmarks.
Removes the Element itself.
var bookmark = editor.getAPIModelById('id'); bookmark.remove(); |
Replaces the element itself with the HTML String passed as an argument.
var bookmark = editor.getAPIModelById('id'); bookmark.replace('<span>Bookmark replaced</span>'); |