Skip to content

Commit 61dc936

Browse files
committed
DOC-2324: update playbook
1 parent dced982 commit 61dc936

14 files changed

+166
-3
lines changed

antora-playbook.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
site:
22
title: TinyMCE Documentation
3-
url: https://localhost:4000
3+
url: https://www.tiny.cloud
44
start_page: tinymce::index.adoc
55
content:
66
sources:
77
- url: ./
8-
branches: HEAD
8+
branches: [ HEAD ]
99
start_path: ./
1010
- url: https://github.com/MitchC1999/tinymce-docs.git
1111
branches: [ 5, 7 ]
1212
urls:
1313
html_extension_style: indexify
14+
latest_version_segment: latest
1415
ui:
1516
bundle:
1617
url: https://tiny-cloud-docs-antora-themes-staging.s3.amazonaws.com/ui-bundle.zip

modules/ROOT/pages/apis/tinymce.dom.domutils.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ available. If it's not, it will fall back to the custom TinyMCE implementation.|
4848
|xref:#encode[encode()]|Entity encodes a string. This method encodes the most common entities, such as `<`, `>`, `"` and `&`.|`xref:apis/tinymce.dom.domutils.adoc[DOMUtils]`
4949
|xref:#findCommonAncestor[findCommonAncestor()]|Find the common ancestor of two elements. This is a shorter method than using the DOM Range logic.|`xref:apis/tinymce.dom.domutils.adoc[DOMUtils]`
5050
|xref:#fire[fire()]|Fires the specified event name and optional object on the specified target.
51+
52+
5153
__Deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 7.0. Use `dispatch` instead.__|`xref:apis/tinymce.dom.domutils.adoc[DOMUtils]`
5254
|xref:#get[get()]|Returns the specified element by ID or the input element if it isn't a string.|`xref:apis/tinymce.dom.domutils.adoc[DOMUtils]`
5355
|xref:#getAttrib[getAttrib()]|Returns the specified attribute by name.|`xref:apis/tinymce.dom.domutils.adoc[DOMUtils]`
@@ -396,6 +398,8 @@ Find the common ancestor of two elements. This is a shorter method than using th
396398
fire(target: Node | Document | Window, name: String, evt: Object): Event
397399
----
398400
Fires the specified event name and optional object on the specified target.
401+
402+
399403
__Deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 7.0. Use `dispatch` instead.__
400404

401405
==== Parameters

modules/ROOT/pages/apis/tinymce.dom.eventutils.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ This class wraps the browsers native event logic with more convenient methods.
1919
listeners to child nodes within that target.|`xref:apis/tinymce.dom.eventutils.adoc[EventUtils]`
2020
|xref:#dispatch[dispatch()]|Dispatches the specified event on the specified target.|`xref:apis/tinymce.dom.eventutils.adoc[EventUtils]`
2121
|xref:#fire[fire()]|Fires the specified event on the specified target.
22+
23+
2224
__Deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 7.0. Use `dispatch` instead.__|`xref:apis/tinymce.dom.eventutils.adoc[EventUtils]`
2325
|xref:#unbind[unbind()]|Unbinds the specified event by name, name and callback or all events on the target.|`xref:apis/tinymce.dom.eventutils.adoc[EventUtils]`
2426
|===
@@ -93,6 +95,8 @@ Dispatches the specified event on the specified target.
9395
fire(target: Object, name: String, args: Object): EventUtils
9496
----
9597
Fires the specified event on the specified target.
98+
99+
96100
__Deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 7.0. Use `dispatch` instead.__
97101

98102
==== Parameters

modules/ROOT/pages/apis/tinymce.editor.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ link:https://www.tiny.cloud/docs/tinymce/6/events/[event reference] for more det
8888
the tinymce command identifiers documentation.|`xref:apis/tinymce.editor.adoc[Editor]`
8989
|xref:#fire[fire()]|Fires the specified event by name. Consult the
9090
link:https://www.tiny.cloud/docs/tinymce/6/events/[event reference] for more details on each event.
91+
92+
9193
__Deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 7.0. Use `dispatch` instead.__|`xref:apis/tinymce.util.observable.adoc[Observable]`
9294
|xref:#focus[focus()]|Focuses/activates the editor. This will set this editor as the activeEditor in the tinymce collection
9395
it will also place DOM focus inside the editor.|`xref:apis/tinymce.editor.adoc[Editor]`
@@ -102,6 +104,8 @@ holds the iframe or the editable element.|`xref:apis/tinymce.editor.adoc[Editor]
102104
|xref:#getDoc[getDoc()]|Returns the iframes document object.|`xref:apis/tinymce.editor.adoc[Editor]`
103105
|xref:#getElement[getElement()]|Returns the target element/textarea that got replaced with a TinyMCE editor instance.|`xref:apis/tinymce.editor.adoc[Editor]`
104106
|xref:#getParam[getParam()]|Returns a configuration parameter by name.
107+
108+
105109
__Deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 7.0. Use the `editor.options.get` API instead.__|`xref:apis/tinymce.editor.adoc[Editor]`
106110
|xref:#getWin[getWin()]|Returns the iframes window object.|`xref:apis/tinymce.editor.adoc[Editor]`
107111
|xref:#hasEditableRoot[hasEditableRoot()]|Returns the current editable state of the editor's root element.|`xref:apis/tinymce.editor.adoc[Editor]`
@@ -138,6 +142,8 @@ This method will move the HTML contents from the editor into that textarea or di
138142
so all events etc that method has will get dispatched as well.|`xref:apis/tinymce.editor.adoc[Editor]`
139143
|xref:#setContent[setContent()]|Sets the specified content to the editor instance, this will cleanup the content before it gets set using
140144
the different cleanup rules options.
145+
146+
141147
__Note: The content return value was deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 7.0.__|`xref:apis/tinymce.editor.adoc[Editor]`
142148
|xref:#setDirty[setDirty()]|Explicitly sets the dirty state. This will fire the dirty event if the editor dirty state is changed from false to true
143149
by invoking this method.|`xref:apis/tinymce.editor.adoc[Editor]`
@@ -386,6 +392,8 @@ fire(name: String, args: Object?, bubble: Boolean?): Object
386392
----
387393
Fires the specified event by name. Consult the
388394
link:https://www.tiny.cloud/docs/tinymce/6/events/[event reference] for more details on each event.
395+
396+
389397
__Deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 7.0. Use `dispatch` instead.__
390398

391399
==== Examples
@@ -533,6 +541,8 @@ Returns the target element/textarea that got replaced with a TinyMCE editor inst
533541
getParam(name: String, defaultVal: String, type: String): String
534542
----
535543
Returns a configuration parameter by name.
544+
545+
536546
__Deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 7.0. Use the `editor.options.get` API instead.__
537547

538548
==== Examples
@@ -943,6 +953,8 @@ setContent(content: String, args: Object): String
943953
----
944954
Sets the specified content to the editor instance, this will cleanup the content before it gets set using
945955
the different cleanup rules options.
956+
957+
946958
__Note: The content return value was deprecated in TinyMCE 6.0 and has been marked for removal in TinyMCE 7.0.__
947959

948960
==== Examples

modules/ROOT/pages/apis/tinymce.editor.ui.registry.adoc

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,15 @@ TinyMCE UI registration API.
1717
|xref:#addAutocompleter[addAutocompleter()]|Registers a new auto completer component. When a configured string pattern
1818
is matched in the content while typing, the autocompleter will be triggered.
1919
Emoticons and Charmap use an autocompleter.
20+
21+
2022
For information on creating an autocompleter, see:
2123
link:https://www.tiny.cloud/docs/tinymce/6/autocompleter/[
2224
UI Components - Autocompleter].|`xref:apis/tinymce.editor.ui.registry.adoc[Registry]`
2325
|xref:#addButton[addButton()]|Registers a new toolbar button that executes a command when clicked or activated
2426
via keyboard navigation controls.
27+
28+
2529
For information on creating a basic toolbar button, see:
2630
link:https://www.tiny.cloud/docs/tinymce/6/custom-basic-toolbar-button/[
2731
UI Components - Types of toolbar buttons: Basic button].|`xref:apis/tinymce.editor.ui.registry.adoc[Registry]`
@@ -31,22 +35,32 @@ form element appearing when a content predicate is matched. An example
3135
of a contextual form is the link plugin when the configuration
3236
{ link_context_toolbar: true } is used. When the cursor is on a link, a
3337
contextual input form appears allowing for quick changes to the url field.
38+
39+
3440
For information on creating context forms, see:
3541
link:https://www.tiny.cloud/docs/tinymce/6/contextform/[
3642
UI Components - Context forms].|`xref:apis/tinymce.editor.ui.registry.adoc[Registry]`
3743
|xref:#addContextMenu[addContextMenu()]|Registers a new context menu section that only appears when a content predicate is matched,
3844
for example, the cursor is inside a table.
45+
46+
3947
For information on creating context menus, see:
4048
link:https://www.tiny.cloud/docs/tinymce/6/contextmenu/[
4149
UI Components - Context Menu].|`xref:apis/tinymce.editor.ui.registry.adoc[Registry]`
4250
|xref:#addContextToolbar[addContextToolbar()]|Registers a new context toolbar that only appears when a content predicate is matched for example
4351
the cursor is on an image element.
52+
53+
4454
For information on creating context toolbars, see:
4555
link:https://www.tiny.cloud/docs/tinymce/6/contexttoolbar/[
4656
UI Components - Context Toolbar].|`xref:apis/tinymce.editor.ui.registry.adoc[Registry]`
4757
|xref:#addGroupToolbarButton[addGroupToolbarButton()]|Registers a new group toolbar button for the toolbar. Renders a toolbar button that opens a floating toolbar when
4858
clicked.
59+
60+
4961
**Note:** Group toolbar buttons can only be used when using the floating toolbar mode.
62+
63+
5064
For information on creating a group toolbar button, see:
5165
link:https://www.tiny.cloud/docs/tinymce/6/custom-group-toolbar-button/[
5266
UI Components - Types of toolbar buttons: Group toolbar button].|`xref:apis/tinymce.editor.ui.registry.adoc[Registry]`
@@ -56,17 +70,23 @@ to the editor instance it was configured for.|`xref:apis/tinymce.editor.ui.regis
5670
|xref:#addMenuButton[addMenuButton()]|Registers a new menu button. Adds a toolbar button that opens a menu when
5771
clicked. The menu can be populated by items created by addMenuItem,
5872
addNestedMenuItem or addToggleMenuItem.
73+
74+
5975
For information on creating a toolbar menu button, see:
6076
link:https://www.tiny.cloud/docs/tinymce/6/custom-menu-toolbar-button/[
6177
UI Components - Types of toolbar buttons: Menu button].|`xref:apis/tinymce.editor.ui.registry.adoc[Registry]`
6278
|xref:#addMenuItem[addMenuItem()]|Registers a new menu item that executes a command when clicked or activated
6379
via keyboard navigation controls.
80+
81+
6482
For information on creating a basic menu item, see:
6583
link:https://www.tiny.cloud/docs/tinymce/6/creating-custom-menu-items/[
6684
UI Components - Custom menu items: Basic menu items].|`xref:apis/tinymce.editor.ui.registry.adoc[Registry]`
6785
|xref:#addNestedMenuItem[addNestedMenuItem()]|Registers a new menu item that reveals a submenu when clicked or activated
6886
by keyboard navigation controls.The submenu can be populated by items
6987
created by addMenuItem, addNestedMenuItem or addToggleMenuItem.
88+
89+
7090
For information on creating a nested menu item, see:
7191
link:https://www.tiny.cloud/docs/tinymce/6/custom-nested-menu-items/[
7292
UI Components - Custom menu items: Nested menu items].|`xref:apis/tinymce.editor.ui.registry.adoc[Registry]`
@@ -77,21 +97,29 @@ button with the same sidebar name is created. Additionally there is a
7797
ToggleSidebar command and a 'ToggleSidebar' event that can used to
7898
manage the sidebar open/closed state. The tinycomments plugin uses a
7999
sidebar for its Ui components.
100+
101+
80102
For information on creating a custom sidebar, see:
81103
link:https://www.tiny.cloud/docs/tinymce/6/customsidebar/[
82104
UI Components - Custom sidebar].|`xref:apis/tinymce.editor.ui.registry.adoc[Registry]`
83105
|xref:#addSplitButton[addSplitButton()]|Registers a new split button for the toolbar. The advanced list plugin uses
84106
a split button to simplify its functionality.
107+
108+
85109
For information on creating a split toolbar button, see:
86110
link:https://www.tiny.cloud/docs/tinymce/6/custom-split-toolbar-button/[
87111
UI Components - Types of toolbar buttons: Split button].|`xref:apis/tinymce.editor.ui.registry.adoc[Registry]`
88112
|xref:#addToggleButton[addToggleButton()]|Registers a new toggle button for the toolbar. A toggle buttons state can
89113
be set in the configuration.
114+
115+
90116
For information on creating a toggle toolbar button, see:
91117
link:https://www.tiny.cloud/docs/tinymce/6/custom-toggle-toolbar-button/[
92118
UI Components - Types of toolbar buttons: Toggle button].|`xref:apis/tinymce.editor.ui.registry.adoc[Registry]`
93119
|xref:#addToggleMenuItem[addToggleMenuItem()]|Registers a new menu item that will act like a toggle button,
94120
showing a tick in the menu item to represent state.
121+
122+
95123
For information on creating a toggle menu item, see:
96124
link:https://www.tiny.cloud/docs/tinymce/6/custom-toggle-menu-items/[
97125
UI Components - Custom menu items: Toggle menu items].|`xref:apis/tinymce.editor.ui.registry.adoc[Registry]`
@@ -117,6 +145,8 @@ addAutocompleter(name: String, obj: InlineContent.AutocompleterSpec)
117145
Registers a new auto completer component. When a configured string pattern
118146
is matched in the content while typing, the autocompleter will be triggered.
119147
Emoticons and Charmap use an autocompleter.
148+
149+
120150
For information on creating an autocompleter, see:
121151
link:https://www.tiny.cloud/docs/tinymce/6/autocompleter/[
122152
UI Components - Autocompleter].
@@ -136,6 +166,8 @@ addButton(name: String, obj: Toolbar.ToolbarButtonSpec)
136166
----
137167
Registers a new toolbar button that executes a command when clicked or activated
138168
via keyboard navigation controls.
169+
170+
139171
For information on creating a basic toolbar button, see:
140172
link:https://www.tiny.cloud/docs/tinymce/6/custom-basic-toolbar-button/[
141173
UI Components - Types of toolbar buttons: Basic button].
@@ -159,6 +191,8 @@ form element appearing when a content predicate is matched. An example
159191
of a contextual form is the link plugin when the configuration
160192
{ link_context_toolbar: true } is used. When the cursor is on a link, a
161193
contextual input form appears allowing for quick changes to the url field.
194+
195+
162196
For information on creating context forms, see:
163197
link:https://www.tiny.cloud/docs/tinymce/6/contextform/[
164198
UI Components - Context forms].
@@ -178,6 +212,8 @@ addContextMenu(name: String, obj: Menu.ContextMenuSpec)
178212
----
179213
Registers a new context menu section that only appears when a content predicate is matched,
180214
for example, the cursor is inside a table.
215+
216+
181217
For information on creating context menus, see:
182218
link:https://www.tiny.cloud/docs/tinymce/6/contextmenu/[
183219
UI Components - Context Menu].
@@ -197,6 +233,8 @@ addContextToolbar(name: String, obj: Toolbar.ContextToolbarSpec)
197233
----
198234
Registers a new context toolbar that only appears when a content predicate is matched for example
199235
the cursor is on an image element.
236+
237+
200238
For information on creating context toolbars, see:
201239
link:https://www.tiny.cloud/docs/tinymce/6/contexttoolbar/[
202240
UI Components - Context Toolbar].
@@ -216,7 +254,11 @@ addGroupToolbarButton(name: String, obj: Toolbar.GroupToolbarButtonSpec)
216254
----
217255
Registers a new group toolbar button for the toolbar. Renders a toolbar button that opens a floating toolbar when
218256
clicked.
257+
258+
219259
**Note:** Group toolbar buttons can only be used when using the floating toolbar mode.
260+
261+
220262
For information on creating a group toolbar button, see:
221263
link:https://www.tiny.cloud/docs/tinymce/6/custom-group-toolbar-button/[
222264
UI Components - Types of toolbar buttons: Group toolbar button].
@@ -261,6 +303,8 @@ addMenuButton(name: String, obj: Toolbar.ToolbarMenuButtonSpec)
261303
Registers a new menu button. Adds a toolbar button that opens a menu when
262304
clicked. The menu can be populated by items created by addMenuItem,
263305
addNestedMenuItem or addToggleMenuItem.
306+
307+
264308
For information on creating a toolbar menu button, see:
265309
link:https://www.tiny.cloud/docs/tinymce/6/custom-menu-toolbar-button/[
266310
UI Components - Types of toolbar buttons: Menu button].
@@ -280,6 +324,8 @@ addMenuItem(name: String, obj: Menu.MenuItemSpec)
280324
----
281325
Registers a new menu item that executes a command when clicked or activated
282326
via keyboard navigation controls.
327+
328+
283329
For information on creating a basic menu item, see:
284330
link:https://www.tiny.cloud/docs/tinymce/6/creating-custom-menu-items/[
285331
UI Components - Custom menu items: Basic menu items].
@@ -300,6 +346,8 @@ addNestedMenuItem(name: String, obj: Menu.NestedMenuItemSpec)
300346
Registers a new menu item that reveals a submenu when clicked or activated
301347
by keyboard navigation controls.The submenu can be populated by items
302348
created by addMenuItem, addNestedMenuItem or addToggleMenuItem.
349+
350+
303351
For information on creating a nested menu item, see:
304352
link:https://www.tiny.cloud/docs/tinymce/6/custom-nested-menu-items/[
305353
UI Components - Custom menu items: Nested menu items].
@@ -324,6 +372,8 @@ button with the same sidebar name is created. Additionally there is a
324372
ToggleSidebar command and a 'ToggleSidebar' event that can used to
325373
manage the sidebar open/closed state. The tinycomments plugin uses a
326374
sidebar for its Ui components.
375+
376+
327377
For information on creating a custom sidebar, see:
328378
link:https://www.tiny.cloud/docs/tinymce/6/customsidebar/[
329379
UI Components - Custom sidebar].
@@ -343,6 +393,8 @@ addSplitButton(name: String, obj: Toolbar.ToolbarSplitButtonSpec)
343393
----
344394
Registers a new split button for the toolbar. The advanced list plugin uses
345395
a split button to simplify its functionality.
396+
397+
346398
For information on creating a split toolbar button, see:
347399
link:https://www.tiny.cloud/docs/tinymce/6/custom-split-toolbar-button/[
348400
UI Components - Types of toolbar buttons: Split button].
@@ -362,6 +414,8 @@ addToggleButton(name: String, obj: Toolbar.ToolbarToggleButtonSpec)
362414
----
363415
Registers a new toggle button for the toolbar. A toggle buttons state can
364416
be set in the configuration.
417+
418+
365419
For information on creating a toggle toolbar button, see:
366420
link:https://www.tiny.cloud/docs/tinymce/6/custom-toggle-toolbar-button/[
367421
UI Components - Types of toolbar buttons: Toggle button].
@@ -381,6 +435,8 @@ addToggleMenuItem(name: String, obj: Menu.ToggleMenuItemSpec)
381435
----
382436
Registers a new menu item that will act like a toggle button,
383437
showing a tick in the menu item to represent state.
438+
439+
384440
For information on creating a toggle menu item, see:
385441
link:https://www.tiny.cloud/docs/tinymce/6/custom-toggle-menu-items/[
386442
UI Components - Custom menu items: Toggle menu items].

modules/ROOT/pages/apis/tinymce.editor.ui.ui.adoc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ This editor ui instance.
2525
|Name|Summary|Defined by
2626
|xref:#tinymce.editor.ui.hide[tinymce.editor.ui.hide()]|Hides the editor user interface for inline editors. This method affects all user
2727
interface elements, including: menu bar, toolbar, notifications, and dialogs.
28+
29+
2830
If the `toolbar_persist` option is set to `true` and this method is used,
2931
the user interface will remain hidden, regardless of focus.|`xref:apis/tinymce.editor.ui.ui.adoc[Ui]`
3032
|xref:#tinymce.editor.ui.isEnabled[tinymce.editor.ui.isEnabled()]|Determines if the editor user interface is `enabled` (`true`) or `disabled` (`false`).|`xref:apis/tinymce.editor.ui.ui.adoc[Ui]`
@@ -33,6 +35,8 @@ This method affects all user interface elements, including: menu bar,
3335
toolbar, notifications, and dialogs. Can not be set to 'true' when in readonly mode.|`xref:apis/tinymce.editor.ui.ui.adoc[Ui]`
3436
|xref:#tinymce.editor.ui.show[tinymce.editor.ui.show()]|Reveals the editor user interface for inline editors. This method affects all user
3537
interface elements, including: menu bar, toolbar, notifications, and dialogs.
38+
39+
3640
If the `toolbar_persist` option is set to `true` and this method is used,
3741
the user interface will remain visible, regardless of focus.|`xref:apis/tinymce.editor.ui.ui.adoc[Ui]`
3842
|===
@@ -48,6 +52,8 @@ tinymce.editor.ui.hide()
4852
----
4953
Hides the editor user interface for inline editors. This method affects all user
5054
interface elements, including: menu bar, toolbar, notifications, and dialogs.
55+
56+
5157
If the `toolbar_persist` option is set to `true` and this method is used,
5258
the user interface will remain hidden, regardless of focus.
5359

@@ -91,6 +97,8 @@ tinymce.editor.ui.show()
9197
----
9298
Reveals the editor user interface for inline editors. This method affects all user
9399
interface elements, including: menu bar, toolbar, notifications, and dialogs.
100+
101+
94102
If the `toolbar_persist` option is set to `true` and this method is used,
95103
the user interface will remain visible, regardless of focus.
96104

0 commit comments

Comments
 (0)