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/7.8.0-release-notes.adoc
+41Lines changed: 41 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -224,6 +224,47 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a
224
224
225
225
// CCFR here.
226
226
227
+
=== New subtoolbar support for context toolbars.
228
+
// #TINY-11748
229
+
230
+
{productname} {release-version} introduces support for multi-level context toolbars, enabling more advanced and interactive editing experiences directly within the editor interface. Previously, developers had to manually configure separate toolbars and manage transitions between them using predicate logic. This release simplifies that process by adding a new API for defining and navigating subtoolbars, similar to the existing context form functionality.
231
+
232
+
A new `+navigateback+` button streamlines navigation between toolbar levels, while improved focus management ensures input fields are automatically focused when switching toolbars. These enhancements provide a more flexible, intuitive, and responsive workflow for both developers and end users.
233
+
234
+
.Example of a multi-level context toolbar configuration:
For more information on context toolbars, see xref:contexttoolbar.adoc[Context toolbars].
267
+
227
268
=== The `+editor.selection.scrollIntoView()+` method now pads the target scroll area with a small margin, ensuring content doesn't sit at the very edge of the viewport.
Copy file name to clipboardExpand all lines: modules/ROOT/pages/contexttoolbar.adoc
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,6 +60,34 @@ items: [
60
60
]
61
61
----
62
62
63
+
[NOTE]
64
+
For editors using 7.8.0+, context toolbars also support the `+navigateback+` button for multi-level toolbar navigation. This built-in button allows returning to the previous context toolbar when using nested toolbars.
65
+
66
+
.Example of a multi-level context toolbar configuration:
67
+
[source, js]
68
+
----
69
+
tinymce.init({
70
+
selector: 'textarea',
71
+
setup: (editor) => {
72
+
// Register the main context toolbar named 'bar'
73
+
editor.ui.registry.addContextToolbar('bar', {
74
+
predicate: () => true, // Always show the toolbar when triggered
Copy file name to clipboardExpand all lines: modules/ROOT/partials/toolbar-button-ids/core-toolbar-buttons.adoc
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ The `+fontsize+` and `+fontsizeinput+` toolbar buttons should not be placed in a
30
30
|`+italic+` |Applies the italic format to the current selection.
31
31
|`+language+` |Dropdown list with languages to apply to the selection. This button requires the xref:content-localization.adoc#content_langs[`+content_langs+` option].
32
32
|`+lineheight+` |Dropdown list with line heights to apply to selection.
33
+
|`+navigateback+` | Allows navigation between subtoolbar levels for multi-level toolbar configurations.
33
34
|`+newdocument+` |Creates a new document.
34
35
|`+outdent+` |Outdents the current list item or block element.
35
36
|`+paste+` |Pastes the current clipboard into the editor.
0 commit comments