Skip to content

Commit e728789

Browse files
authored
Merge branch 'feature/7.8.0/DOC-3131' into feature/7.8.0/DOC-3131_DOC-3193
2 parents 3ce814d + d7d14b6 commit e728789

File tree

10 files changed

+116
-43
lines changed

10 files changed

+116
-43
lines changed

modules/ROOT/nav.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@
239239
** xref:editor-important-options.adoc[Integration options]
240240
** xref:editor-size-options.adoc[Size]
241241
** xref:editor-save-and-submit.adoc[Save and submit]
242-
** xref:editor-premium-upgrade-promotion.adoc[Premium upgrade promotion]
242+
** xref:promotions.adoc[Promotions]
243243
* Interface
244244
** Editor modes
245245
*** xref:use-tinymce-classic.adoc[Classic editing mode]

modules/ROOT/pages/7.8.0-release-notes.adoc

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ For information on the **Comments** plugin, see: xref:introduction-to-tiny-comme
101101

102102
{productname} {release-version} introduces the **Image Optimizer (Powered by Uploadcare)** plugin.
103103

104+
**Image Optimizers** includes the following fix and addition.
105+
104106
=== Added support for `+uploadcare_filters+` option in the Image Optimizer (Powered by Uploadcare) plugin
105107
// #EPIC-146
106108

@@ -124,6 +126,11 @@ tinymce.init({
124126
});
125127
----
126128

129+
==== Keyboard navigation between toolbars no longer loses focus.
130+
// #TINY-11880
131+
132+
In previous versions of **Image Optimizer**, navigating between toolbars and sub toolbars could cause the toolbar focus state to be lost. This issue required users to press `+Ctrl+F9+` to manually restore focus to the context toolbar, disrupting keyboard navigation workflows. {productname} {release-version} addresses this issue, by updating the focus handling using new sub toolbar APIs, ensuring that focus is now properly retained when moving between toolbars and sub toolbars. This improvement enhances accessibility and allows users to navigate the toolbar system more efficiently.
133+
127134
For information on the **Image Optimizer (Powered by Uploadcare)** plugin, see xref:uploadcare.adoc[Image Optimizer (Powered by Uploadcare)].
128135

129136
=== Math
@@ -240,6 +247,47 @@ For information on using Enhanced Skins & Icon Packs, see: xref:enhanced-skins-a
240247

241248
// CCFR here.
242249

250+
=== New subtoolbar support for context toolbars.
251+
// #TINY-11748
252+
253+
{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.
254+
255+
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.
256+
257+
.Example of a multi-level context toolbar configuration:
258+
[source, js]
259+
----
260+
tinymce.init({
261+
selector: 'textarea',
262+
height: 350,
263+
setup: (editor) => {
264+
editor.ui.registry.addContextToolbar('bar', {
265+
predicate: () => true,
266+
items: 'bold italic | undo redo | subbar1',
267+
position: 'line',
268+
scope: 'editor'
269+
});
270+
271+
editor.ui.registry.addContextToolbar('subbar1', {
272+
launch: { text: 'Subbar 1' },
273+
items: 'navigateback bold italic | undo redo | subbar2'
274+
});
275+
276+
editor.ui.registry.addContextToolbar('subbar2', {
277+
launch: { text: 'Subbar 2' },
278+
items: 'navigateback bold italic | undo redo | subbar3'
279+
});
280+
281+
editor.ui.registry.addContextToolbar('subbar3', {
282+
launch: { text: 'Subbar 3' },
283+
items: 'navigateback bold italic | undo redo'
284+
});
285+
}
286+
});
287+
----
288+
289+
For more information on context toolbars, see xref:contexttoolbar.adoc[Context toolbars].
290+
243291
=== 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.
244292
// #TINY-11786
245293

modules/ROOT/pages/contexttoolbar.adoc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,34 @@ items: [
6060
]
6161
----
6262

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
75+
items: 'bold italic | undo redo | subbar1', // Toolbar buttons and nested toolbar trigger
76+
position: 'line',
77+
scope: 'editor'
78+
});
79+
80+
// Register a nested context toolbar named 'subbar1'
81+
editor.ui.registry.addContextToolbar('subbar1', {
82+
launch: { text: 'Subbar 1' }, // Button label that appears in the parent toolbar
83+
items: 'navigateback bold italic | undo redo | subbar2'
84+
// 'navigateback' allows users to return to the previous toolbar
85+
// 'subbar2' is another nested toolbar (can be defined similarly)
86+
});
87+
}
88+
});
89+
----
90+
6391
liveDemo::context-toolbar-labels[height="600", tab="js"]
6492

6593
== Launching a context toolbar programmatically

modules/ROOT/pages/editor-premium-upgrade-promotion.adoc

Lines changed: 0 additions & 27 deletions
This file was deleted.

modules/ROOT/pages/initial-configuration.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Editor options related to saving or submitting editor content.
2929

3030
|
3131
[.lead]
32-
xref:editor-premium-upgrade-promotion.adoc[Premium upgrade promotion]
32+
xref:promotions.adoc[Promotions]
3333

3434
Editor options related to turning the Premium promotion display off.
3535

modules/ROOT/pages/promotions.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
= Premium upgrade promotion
2+
:navtitle: {productname} Premium upgrade promotion
3+
:description: Editor options related to turning the Premium promotion display off
4+
:keywords: upgrade, promotion, premium, button, lightning bolt
5+
6+
include::partial$misc/premium-upgrade-promotion-option.adoc[]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[[onboarding]]
2+
== `+onboarding+`
3+
4+
The cloud version of {productname} contains a promotion for paid features included in the 14-day trial. This promotion can be toggled on or off with the `+onboarding+` option.
5+
6+
The promotion will automatically disappear when the trial ends.
7+
8+
*Type:* `+Boolean+`
9+
10+
*Default value:* `+true+` for cloud instances; otherwise `+false+`.
11+
12+
*Possible values:* `+true+`, `+false+`
13+
14+
.Example: using cloud `+onboarding+`
15+
[source,js]
16+
----
17+
tinymce.init({
18+
selector: "textarea", // change this value according to your HTML
19+
onboarding: false
20+
});
21+
----
Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,19 @@
11
[[promotion]]
2-
== `+promotion+`
2+
== `+promotion+`
33

4-
{productname} 6.2 and later includes the `promotion` option. It controls the presentation or otherwise of a Tiny-specific promotion button.
4+
The open source version of {productname} contains a promotion for paid features. This promotion can be toggled on or off with the `+promotion+` option.
55

66
*Type:* `+Boolean+`
77

88
*Default value:* `+true+` in Community self-hosted instances; otherwise `+false+`.
99

1010
*Possible values:* `+true+`, `+false+`
1111

12-
See xref:editor-premium-upgrade-promotion.adoc#premium-upgrade-promotion-defaults[Premium upgrade promotion defaults] for details.
13-
14-
=== Example: using `+promotion+`
15-
12+
.Example: using open source `+promotion+`
1613
[source,js]
1714
----
1815
tinymce.init({
1916
selector: "textarea", // change this value according to your HTML
2017
promotion: true
2118
});
22-
----
23-
24-
The *Upgrade* promotion appears in the unused corner of the {productname} menu bar. Consequently it does not appear if the menu bar is disabled.
25-
26-
NOTE: The distribution-specific defaults are not fixed. Someone running {productname} as part of a Premium plan can turn this option on. And someone running the Community distribution of {productname} as a self-hosted instance can turn this option off.
19+
----
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
[[premium-upgrade-promotion-option]]
2-
== Premium upgrade promotion option
1+
== Open source promotion
32

4-
include::partial$configuration/promotion.adoc[leveloffset=+1]
3+
include::partial$configuration/promotion.adoc[leveloffset=+1]
4+
5+
== Cloud promotion
6+
7+
include::partial$configuration/onboarding.adoc[leveloffset=+1]

modules/ROOT/partials/toolbar-button-ids/core-toolbar-buttons.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ The `+fontsize+` and `+fontsizeinput+` toolbar buttons should not be placed in a
3030
|`+italic+` |Applies the italic format to the current selection.
3131
|`+language+` |Dropdown list with languages to apply to the selection. This button requires the xref:content-localization.adoc#content_langs[`+content_langs+` option].
3232
|`+lineheight+` |Dropdown list with line heights to apply to selection.
33+
|`+navigateback+` | Allows navigation between subtoolbar levels for multi-level toolbar configurations.
3334
|`+newdocument+` |Creates a new document.
3435
|`+outdent+` |Outdents the current list item or block element.
3536
|`+paste+` |Pastes the current clipboard into the editor.

0 commit comments

Comments
 (0)