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/apis/tinymce.dom.selection.adoc
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,9 @@ node the parent element will be returned.|`xref:apis/tinymce.dom.selection.adoc[
48
48
|xref:#select[select()]|Selects the specified element. This will place the start and end of the selection range around the element.|`xref:apis/tinymce.dom.selection.adoc[Selection]`
49
49
|xref:#selectorChanged[selectorChanged()]|Executes callback when the current selection starts/stops matching the specified selector. The current
50
50
state will be passed to the callback as it's first argument.|`xref:apis/tinymce.dom.selection.adoc[Selection]`
51
-
|xref:#setContent[setContent()]|Sets the current selection to the specified content. If any contents is selected it will be replaced
51
+
|xref:#setContent[setContent()]|This method has been deprecated. Use "editor.insertContent" instead.
52
+
53
+
Sets the current selection to the specified content. If any contents is selected it will be replaced
52
54
with the contents passed in to this function. If there is no selection the contents will be inserted
53
55
where the caret is placed in the editor/page.|`xref:apis/tinymce.dom.selection.adoc[Selection]`
54
56
|xref:#setCursorLocation[setCursorLocation()]|Move the selection cursor range to the specified node and offset.
@@ -356,6 +358,8 @@ state will be passed to the callback as it's first argument.
356
358
----
357
359
setContent(content: String, args: Object)
358
360
----
361
+
This method has been deprecated. Use "editor.insertContent" instead.
362
+
359
363
Sets the current selection to the specified content. If any contents is selected it will be replaced
360
364
with the contents passed in to this function. If there is no selection the contents will be inserted
This class contains the core logic for a TinyMCE editor.
@@ -37,6 +37,7 @@ ed.render();
37
37
|contentStyles|`Array`|Array of CSS styles to add to head of document when the editor loads.|`xref:apis/tinymce.editor.adoc[Editor]`
38
38
|documentBaseURI|`xref:apis/tinymce.util.uri.adoc[URI]`|URI object to document configured for the TinyMCE instance.|`xref:apis/tinymce.editor.adoc[Editor]`
39
39
|dom|`xref:apis/tinymce.dom.domutils.adoc[DOMUtils]`|DOM instance for the editor.|`xref:apis/tinymce.editor.adoc[Editor]`
40
+
|editorUid|`String`|A uuid string to uniquely identify an editor across any page.|`xref:apis/tinymce.editor.adoc[Editor]`
|undoManager|`xref:apis/tinymce.undomanager.adoc[UndoManager]`|Undo manager instance, responsible for handling undo levels.|`xref:apis/tinymce.editor.adoc[Editor]`
56
+
|userLookup|`xref:apis/tinymce.userlookup.adoc[UserLookup]`|Editor user lookup API|`xref:apis/tinymce.editor.adoc[Editor]`
55
57
|windowManager|`xref:apis/tinymce.windowmanager.adoc[WindowManager]`|Window manager reference, use this to open new windows and dialogs.|`xref:apis/tinymce.editor.adoc[Editor]`
56
58
|===
57
59
@@ -723,7 +725,7 @@ Returns true/false if the editor is hidden or not.
723
725
=== load()
724
726
[source, javascript]
725
727
----
726
-
load(args: Object): String
728
+
load(args: Object)
727
729
----
728
730
Loads contents from the textarea, input or other element that got converted into an editor instance.
729
731
This method will move the contents from that textarea, input or other element into the editor by using setContent
@@ -733,10 +735,6 @@ so all events etc that method has will get dispatched as well.
733
735
734
736
* `args (Object)` - Optional content object, this gets passed around through the whole load process.
735
737
736
-
==== Return value
737
-
738
-
* `String` - HTML string that got set into the editor.
739
-
740
738
'''
741
739
742
740
[[nodeChanged]]
@@ -949,7 +947,7 @@ so all events etc that method has will get dispatched as well.
949
947
=== setContent()
950
948
[source, javascript]
951
949
----
952
-
setContent(content: String, args: Object): String
950
+
setContent(content: String, args: Object)
953
951
----
954
952
Sets the specified content to the editor instance, this will cleanup the content before it gets set using
Fetches user information using a provided array of userIds.
60
+
61
+
==== Parameters
62
+
63
+
* `userIds (string[])` - - A list of user IDs to fetch information for.
64
+
65
+
==== Return value
66
+
67
+
* `Record<UserId, Promise<User>>` - An object where each key is a user ID and its value is a Promise that resolves to the user's data or rejects if the user is not found.
0 commit comments