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
Copy file name to clipboardExpand all lines: modules/ROOT/pages/api/tinymce.dom/tinymce.dom.bookmarkmanager.adoc
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ This class handles selection bookmarks.
8
8
[cols=",,",options="header",]
9
9
|===
10
10
|name |summary |defined by
11
-
|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]
11
+
|link:#bookmarkmanager[BookmarkManager()] |Constructs a new BookmarkManager instance for a specific selection instance. |link:{baseurl}/api/tinymce.dom/tinymce.dom.bookmarkmanager.html[tinymce.dom.BookmarkManager]
12
12
|===
13
13
14
14
[[methods]]
@@ -17,9 +17,9 @@ This class handles selection bookmarks.
17
17
[cols=",,",options="header",]
18
18
|===
19
19
|name |summary |defined by
20
-
|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]
21
-
|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]
22
-
|link:#movetobookmark[moveToBookmark()] |Restores the selection to the specified bookmark. |link:/docs-4x/api/tinymce.dom/tinymce.dom.bookmarkmanager[tinymce.dom.BookmarkManager]
20
+
|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:{baseurl}/api/tinymce.dom/tinymce.dom.bookmarkmanager.html[tinymce.dom.BookmarkManager]
21
+
|link:#isbookmarknode[isBookmarkNode()] |Returns true/false if the specified node is a bookmark node or not. |link:{baseurl}/api/tinymce.dom/tinymce.dom.bookmarkmanager.html[tinymce.dom.BookmarkManager]
22
+
|link:#movetobookmark[moveToBookmark()] |Restores the selection to the specified bookmark. |link:{baseurl}/api/tinymce.dom/tinymce.dom.bookmarkmanager.html[tinymce.dom.BookmarkManager]
23
23
|===
24
24
25
25
== Constructors
@@ -34,7 +34,7 @@ Constructs a new BookmarkManager instance for a specific selection instance.
34
34
[[parameters]]
35
35
==== Parameters
36
36
37
-
* [.param-name]#selection# link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[[.param-type]#(tinymce.dom.Selection)#] - Selection instance to handle bookmarks for.
37
+
* [.param-name]#selection# link:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[[.param-type]#(tinymce.dom.Selection)#] - Selection instance to handle bookmarks for.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/api/tinymce.dom/tinymce.dom.eventutils.adoc
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,10 @@ This class wraps the browsers native event logic with more convenient methods.
8
8
[cols=",,",options="header",]
9
9
|===
10
10
|name |summary |defined by
11
-
|link:#bind[bind()] |Binds a callback to an event on the specified target. |link:/docs-4x/api/tinymce.dom/tinymce.dom.eventutils[tinymce.dom.EventUtils]
12
-
|link:#clean[clean()] |Removes all bound event listeners for the specified target. This will also remove any bound listeners to child nodes within that target. |link:/docs-4x/api/tinymce.dom/tinymce.dom.eventutils[tinymce.dom.EventUtils]
13
-
|link:#fire[fire()] |Fires the specified event on the specified target. |link:/docs-4x/api/tinymce.dom/tinymce.dom.eventutils[tinymce.dom.EventUtils]
14
-
|link:#unbind[unbind()] |Unbinds the specified event by name, name and callback or all events on the target. |link:/docs-4x/api/tinymce.dom/tinymce.dom.eventutils[tinymce.dom.EventUtils]
11
+
|link:#bind[bind()] |Binds a callback to an event on the specified target. |link:{baseurl}/api/tinymce.dom/tinymce.dom.eventutils.html[tinymce.dom.EventUtils]
12
+
|link:#clean[clean()] |Removes all bound event listeners for the specified target. This will also remove any bound listeners to child nodes within that target. |link:{baseurl}/api/tinymce.dom/tinymce.dom.eventutils.html[tinymce.dom.EventUtils]
13
+
|link:#fire[fire()] |Fires the specified event on the specified target. |link:{baseurl}/api/tinymce.dom/tinymce.dom.eventutils.html[tinymce.dom.EventUtils]
14
+
|link:#unbind[unbind()] |Unbinds the specified event by name, name and callback or all events on the target. |link:{baseurl}/api/tinymce.dom/tinymce.dom.eventutils.html[tinymce.dom.EventUtils]
15
15
|===
16
16
17
17
== Methods
@@ -32,7 +32,7 @@ Binds a callback to an event on the specified target.
32
32
* [.param-name]#scope# [.param-type]#(Object)# - Scope to call the callback function on, defaults to target.
33
33
34
34
[[return-value]]
35
-
==== Return value
35
+
==== Return value
36
36
anchor:returnvalue[historical anchor]
37
37
38
38
* [.return-type]#function# - Callback function that got bound.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/api/tinymce.dom/tinymce.dom.rangeutils.adoc
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,8 +8,8 @@ This class contains a few utility methods for ranges.
8
8
[cols=",,",options="header",]
9
9
|===
10
10
|name |summary |defined by
11
-
|link:#compareranges[compareRanges()] |Compares two ranges and checks if they are equal. |link:/docs-4x/api/tinymce.dom/tinymce.dom.rangeutils[tinymce.dom.RangeUtils]
12
-
|link:#getcaretrangefrompoint[getCaretRangeFromPoint()] |Gets the caret range for the given x/y location. |link:/docs-4x/api/tinymce.dom/tinymce.dom.rangeutils[tinymce.dom.RangeUtils]
11
+
|link:#compareranges[compareRanges()] |Compares two ranges and checks if they are equal. |link:{baseurl}/api/tinymce.dom/tinymce.dom.rangeutils.html[tinymce.dom.RangeUtils]
12
+
|link:#getcaretrangefrompoint[getCaretRangeFromPoint()] |Gets the caret range for the given x/y location. |link:{baseurl}/api/tinymce.dom/tinymce.dom.rangeutils.html[tinymce.dom.RangeUtils]
13
13
|===
14
14
15
15
== Methods
@@ -28,7 +28,7 @@ Compares two ranges and checks if they are equal.
28
28
* [.param-name]#rng2# [.param-type]#(DOMRange)# - First range to compare.
29
29
30
30
[[return-value]]
31
-
==== Return value
31
+
==== Return value
32
32
anchor:returnvalue[historical anchor]
33
33
34
34
* [.return-type]#Boolean# - true/false if the ranges are equal.
|link:#add[add()] |Adds a specific script to the load queue of the script loader. |link:/docs-4x/api/tinymce.dom/tinymce.dom.scriptloader[tinymce.dom.ScriptLoader]
37
-
|link:#isdone[isDone()] |Returns true/false if a script has been loaded or not. |link:/docs-4x/api/tinymce.dom/tinymce.dom.scriptloader[tinymce.dom.ScriptLoader]
38
-
|link:#load[load()] |Loads a specific script directly without adding it to the load queue. |link:/docs-4x/api/tinymce.dom/tinymce.dom.scriptloader[tinymce.dom.ScriptLoader]
39
-
|link:#loadqueue[loadQueue()] |Starts the loading of the queue. |link:/docs-4x/api/tinymce.dom/tinymce.dom.scriptloader[tinymce.dom.ScriptLoader]
40
-
|link:#loadscripts[loadScripts()] |Loads the specified queue of files and executes the callback ones they are loaded. This method is generally not used outside this class but it might be useful in some scenarios. |link:/docs-4x/api/tinymce.dom/tinymce.dom.scriptloader[tinymce.dom.ScriptLoader]
41
-
|link:#markdone[markDone()] |Marks a specific script to be loaded. This can be useful if a script got loaded outside the script loader or to skip it from loading some script. |link:/docs-4x/api/tinymce.dom/tinymce.dom.scriptloader[tinymce.dom.ScriptLoader]
36
+
|link:#add[add()] |Adds a specific script to the load queue of the script loader. |link:{baseurl}/api/tinymce.dom/tinymce.dom.scriptloader.html[tinymce.dom.ScriptLoader]
37
+
|link:#isdone[isDone()] |Returns true/false if a script has been loaded or not. |link:{baseurl}/api/tinymce.dom/tinymce.dom.scriptloader.html[tinymce.dom.ScriptLoader]
38
+
|link:#load[load()] |Loads a specific script directly without adding it to the load queue. |link:{baseurl}/api/tinymce.dom/tinymce.dom.scriptloader.html[tinymce.dom.ScriptLoader]
39
+
|link:#loadqueue[loadQueue()] |Starts the loading of the queue. |link:{baseurl}/api/tinymce.dom/tinymce.dom.scriptloader.html[tinymce.dom.ScriptLoader]
40
+
|link:#loadscripts[loadScripts()] |Loads the specified queue of files and executes the callback ones they are loaded. This method is generally not used outside this class but it might be useful in some scenarios. |link:{baseurl}/api/tinymce.dom/tinymce.dom.scriptloader.html[tinymce.dom.ScriptLoader]
41
+
|link:#markdone[markDone()] |Marks a specific script to be loaded. This can be useful if a script got loaded outside the script loader or to skip it from loading some script. |link:{baseurl}/api/tinymce.dom/tinymce.dom.scriptloader.html[tinymce.dom.ScriptLoader]
42
42
|===
43
43
44
44
== Methods
@@ -70,7 +70,7 @@ Returns true/false if a script has been loaded or not.
70
70
* [.param-name]#url# [.param-type]#(String)# - URL to check for.
71
71
72
72
[[return-value]]
73
-
==== Return value
73
+
==== Return value
74
74
anchor:returnvalue[historical anchor]
75
75
76
76
* [.return-type]#Boolean# - true/false if the URL is loaded.
|link:#collapse[collapse()] |Collapse the selection to start or end of range. |link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[tinymce.dom.Selection]
30
-
|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.selection[tinymce.dom.Selection]
31
-
|link:#getcontent[getContent()] |Returns the selected contents using the DOM serializer passed in to this class. |link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[tinymce.dom.Selection]
32
-
|link:#getend[getEnd()] |Returns the end element of a selection range. If the end is in a text node the parent element will be returned. |link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[tinymce.dom.Selection]
33
-
|link:#getnode[getNode()] |Returns the currently selected element or the common ancestor element for both start and end of the selection. |link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[tinymce.dom.Selection]
34
-
|link:#getrng[getRng()] |Returns the browsers internal range object. |link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[tinymce.dom.Selection]
35
-
|link:#getsel[getSel()] |Returns the browsers internal selection object. |link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[tinymce.dom.Selection]
36
-
|link:#getstart[getStart()] |Returns the start element of a selection range. If the start is in a text node the parent element will be returned. |link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[tinymce.dom.Selection]
37
-
|link:#iscollapsed[isCollapsed()] |Returns true/false if the selection range is collapsed or not. Collapsed means if it's a caret or a larger selection. |link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[tinymce.dom.Selection]
38
-
|link:#movetobookmark[moveToBookmark()] |Restores the selection to the specified bookmark. |link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[tinymce.dom.Selection]
39
-
|link:#select[select()] |Selects the specified element. This will place the start and end of the selection range around the element. |link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[tinymce.dom.Selection]
40
-
|link:#selectorchanged[selectorChanged()] |Executes callback when the current selection starts/stops matching the specified selector. The current state will be passed to the callback as it's first argument. |link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[tinymce.dom.Selection]
41
-
|link:#setcontent[setContent()] |Sets the current selection to the specified content. If any contents is selected it will be replaced with the contents passed in to this function. If there is no selection the contents will be inserted where the caret is placed in the editor/page. |link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[tinymce.dom.Selection]
42
-
|link:#setcursorlocation[setCursorLocation()] |Move the selection cursor range to the specified node and offset. If there is no node specified it will move it to the first suitable location within the body. |link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[tinymce.dom.Selection]
43
-
|link:#setnode[setNode()] |Sets the current selection to the specified DOM element. |link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[tinymce.dom.Selection]
44
-
|link:#setrng[setRng()] |Changes the selection to the specified DOM range. |link:/docs-4x/api/tinymce.dom/tinymce.dom.selection[tinymce.dom.Selection]
29
+
|link:#collapse[collapse()] |Collapse the selection to start or end of range. |link:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[tinymce.dom.Selection]
30
+
|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:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[tinymce.dom.Selection]
31
+
|link:#getcontent[getContent()] |Returns the selected contents using the DOM serializer passed in to this class. |link:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[tinymce.dom.Selection]
32
+
|link:#getend[getEnd()] |Returns the end element of a selection range. If the end is in a text node the parent element will be returned. |link:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[tinymce.dom.Selection]
33
+
|link:#getnode[getNode()] |Returns the currently selected element or the common ancestor element for both start and end of the selection. |link:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[tinymce.dom.Selection]
34
+
|link:#getrng[getRng()] |Returns the browsers internal range object. |link:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[tinymce.dom.Selection]
35
+
|link:#getsel[getSel()] |Returns the browsers internal selection object. |link:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[tinymce.dom.Selection]
36
+
|link:#getstart[getStart()] |Returns the start element of a selection range. If the start is in a text node the parent element will be returned. |link:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[tinymce.dom.Selection]
37
+
|link:#iscollapsed[isCollapsed()] |Returns true/false if the selection range is collapsed or not. Collapsed means if it's a caret or a larger selection. |link:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[tinymce.dom.Selection]
38
+
|link:#movetobookmark[moveToBookmark()] |Restores the selection to the specified bookmark. |link:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[tinymce.dom.Selection]
39
+
|link:#select[select()] |Selects the specified element. This will place the start and end of the selection range around the element. |link:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[tinymce.dom.Selection]
40
+
|link:#selectorchanged[selectorChanged()] |Executes callback when the current selection starts/stops matching the specified selector. The current state will be passed to the callback as it's first argument. |link:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[tinymce.dom.Selection]
41
+
|link:#setcontent[setContent()] |Sets the current selection to the specified content. If any contents is selected it will be replaced with the contents passed in to this function. If there is no selection the contents will be inserted where the caret is placed in the editor/page. |link:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[tinymce.dom.Selection]
42
+
|link:#setcursorlocation[setCursorLocation()] |Move the selection cursor range to the specified node and offset. If there is no node specified it will move it to the first suitable location within the body. |link:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[tinymce.dom.Selection]
43
+
|link:#setnode[setNode()] |Sets the current selection to the specified DOM element. |link:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[tinymce.dom.Selection]
44
+
|link:#setrng[setRng()] |Changes the selection to the specified DOM range. |link:{baseurl}/api/tinymce.dom/tinymce.dom.selection.html[tinymce.dom.Selection]
45
45
|===
46
46
47
47
== Constructors
@@ -56,10 +56,10 @@ Constructs a new selection instance.
56
56
[[parameters]]
57
57
==== Parameters
58
58
59
-
* [.param-name]#dom# link:/docs-4x/api/tinymce.dom/tinymce.dom.domutils[[.param-type]#(tinymce.dom.DOMUtils)#] - DOMUtils object reference.
59
+
* [.param-name]#dom# link:{baseurl}/api/tinymce.dom/tinymce.dom.domutils.html[[.param-type]#(tinymce.dom.DOMUtils)#] - DOMUtils object reference.
60
60
* [.param-name]#win# [.param-type]#(Window)# - Window to bind the selection object to.
61
-
* [.param-name]#serializer# link:/docs-4x/api/tinymce.dom/tinymce.dom.serializer[[.param-type]#(tinymce.dom.Serializer)#] - DOM serialization class to use for getContent.
62
-
* [.param-name]#editor# link:/docs-4x/api/tinymce/tinymce.editor[[.param-type]#(tinymce.Editor)#] - Editor instance of the selection.
61
+
* [.param-name]#serializer# link:{baseurl}/api/tinymce.dom/tinymce.dom.serializer.html[[.param-type]#(tinymce.dom.Serializer)#] - DOM serialization class to use for getContent.
62
+
* [.param-name]#editor# link:{baseurl}/api/tinymce/tinymce.editor.html[[.param-type]#(tinymce.Editor)#] - Editor instance of the selection.
0 commit comments