You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|link:#bookmarkmanager[BookmarkManager()] |Constructs a new BookmarkManager instance for a specific selection instance. |link:/docs-4x/api/tinymce.dom/tinymce.dom.bookmarkmanager[tinymce.dom.BookmarkManager]
13
+
|===
14
+
15
+
[#methods .anchor]##
16
+
17
+
== link:#methods[Methods]
18
+
19
+
[cols=",,",options="header",]
20
+
|===
21
+
|name |summary |defined by
22
+
|link:#getbookmark[getBookmark()] |Returns a bookmark location for the current selection. This bookmark object can then be used to restore the selection after some content modification to the document. |link:/docs-4x/api/tinymce.dom/tinymce.dom.bookmarkmanager[tinymce.dom.BookmarkManager]
23
+
|link:#isbookmarknode[isBookmarkNode()] |Returns true/false if the specified node is a bookmark node or not. |link:/docs-4x/api/tinymce.dom/tinymce.dom.bookmarkmanager[tinymce.dom.BookmarkManager]
24
+
|link:#movetobookmark[moveToBookmark()] |Restores the selection to the specified bookmark. |link:/docs-4x/api/tinymce.dom/tinymce.dom.bookmarkmanager[tinymce.dom.BookmarkManager]
25
+
|===
26
+
27
+
== Constructors
28
+
29
+
[#bookmarkmanager .anchor]##
30
+
31
+
=== link:#bookmarkmanager[BookmarkManager]
32
+
33
+
public constructor function BookmarkManager(selection:tinymce.dom.Selection)
34
+
35
+
Constructs a new BookmarkManager instance for a specific selection instance.
36
+
37
+
==== Parameters
38
+
39
+
* [.param-name]#selection# link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[[.param-type]#(tinymce.dom.Selection)#] - Selection instance to handle bookmarks for.
Returns a bookmark location for the current selection. This bookmark object can then be used to restore the selection after some content modification to the document.
50
+
51
+
==== Examples
52
+
53
+
[source,prettyprint]
54
+
----
55
+
// Stores a bookmark of the current selection
56
+
var bm = tinymce.activeEditor.selection.getBookmark();
57
+
58
+
tinymce.activeEditor.setContent(tinymce.activeEditor.getContent() + 'Some new content');
This class handles control selection of elements. Controls are elements that can be resized and needs to be selected as a whole. It adds custom resize handles to all browser engines that support properly disabling the built in resize logic.
0 commit comments