Skip to content

Commit e775358

Browse files
kemister85abhinavgandhamFarzad Hayatltroutontiny-ben-tran
authored
DOC-2578: TinyMCE 7.6.0 Release Documentation and Community Changelog. (#3513)
* DOC-2578: TinyMCE 7.6.0 Release Documentation and Community Changelog. * DOC-2578: Pressing `Shift + Enter` in the comment textarea now selects the highlighted user. (#3522) * DOC-2578: Pressing Shift + Enter in the comment textarea now selects the highlighted user. * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> * DOC-2578: Moved content to the premium plugin area. * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]> * DOC-2578: Changing the table row type when a `contentEditable="false"` cell was selected would not work as expected. (#3521) * DOC-2578: Tooltip would not show for group toolbar button. (#3520) * DOC-2578: Tooltip would not show for group toolbar button. * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> --------- Co-authored-by: Farzad Hayat <[email protected]> Co-authored-by: Karl Kemister-Sheppard <[email protected]> * DOC-2578: Enhanced the accessibility checker color palette for better visual contrast and usability (#3532) * DOC-2578: Scroll to show action buttons when replying/editing a comment. (#3523) * DOC-2578: Scroll to show action buttons when replying/editing a comment. * DOC-2578: Moved content to premium plugin section and reworded content to specify we only scroll in the scenario mentioned. * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]> * DOC-2586: New disabled option for disabling all user interactions (#3527) * DOC-2578: The mentions menu now expands freely to the available space outside of the editor. (#3533) * DOC-2578: After creating a conversation, the focus goes to the newly … (#3540) * DOC-2578: After creating a conversation, the focus goes to the newly created conversation * DOC-2578: Mentioned some more scenarios where the issue occurred. * DOC-2578: Rephrased content * DOC-2578: Removed title attribute from dialog tree elements as they already have a tooltip. (#3526) * DOC-2578: Removed title attribute from dialog tree elements as they already have a tooltip. * Update 7.6.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> * Update modules/ROOT/pages/7.6.0-release-notes.adoc --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]> * DOC-2578: Fixed CSS Bundling for Skin UI Content CSS. (#3537) * DOC-2578: Fixed CSS Bundling for Skin UI Content CSS. * Update modules/ROOT/pages/7.6.0-release-notes.adoc * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: ltrouton <[email protected]> * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: CODE:AG <[email protected]> * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: CODE:AG <[email protected]> --------- Co-authored-by: ltrouton <[email protected]> Co-authored-by: CODE:AG <[email protected]> * DOC-2578: Checklist items were unresponsive in center or right alignments. (#3542) * DOC-2578: Adjust `tinycomments` UI font size to match the editor UI font size. (#3536) * DOC-2578: Adjust tinycomments UI font size to match the editor UI font size. * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> --------- Co-authored-by: Farzad Hayat <[email protected]> * DOC-2578: Enhanced accessibility checker UI to display affected content (#3541) * DOC-2578: Enhanced accessibility checker UI to display affected content * Update 7.6.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]> * DOC-2578: The `commentAuthor` property is now included in reply events for the event log. (#3543) * DOC-2578: The commentAuthor property is now included in reply events of the event log. * Update modules/ROOT/partials/plugin-apis/comments-apis.adoc * Update modules/ROOT/partials/plugin-apis/comments-apis.adoc * Update modules/ROOT/partials/plugin-apis/comments-apis.adoc * Update modules/ROOT/partials/plugin-apis/comments-apis.adoc * Update modules/ROOT/partials/plugin-apis/comments-apis.adoc * DOC-2578: Update callback demo to include commentAuthor. * Update modules/ROOT/partials/configuration/tinycomments_reply.adoc Co-authored-by: tiny-ben-tran <[email protected]> --------- Co-authored-by: tiny-ben-tran <[email protected]> * DOC-2578: Introduced a new live region for screen readers to improve accessibility notifications. (#3545) * DOC-2578: Introduced a new live region for screen readers to improve accessibility notifications. * DOC-2578: add write-up for ticket. * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Arvin(Jintao) Han <[email protected]> --------- Co-authored-by: Arvin(Jintao) Han <[email protected]> * DOC-2578: Reduced the amount of scrolling when changing between conve… (#3544) * DOC-2578: Reduced the amount of scrolling when changing between conversations in the sidebar. * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> * Update modules/ROOT/pages/7.6.0-release-notes.adoc --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]> * DOC-2578: Update changelog.adoc for TinyMCE 7.6.0. * DOC-2578: Add Labels and Groups for Context Toolbar Buttons. (#3548) * DOC-2578: Add Labels and Groups for Context Toolbar Buttons. * Update antora.yml * DOC-2578: Added placeholder support for context form input fields. (#3549) * DOC-2578: Fixed Caret Position when closing Comment Mentions dropdown (#3525) * DOC-2578: Fixed Caret Position when closing Comment Mentions dropdown TINY-11453 * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]> * DOC-2578: Added tooltips to conversation and comment kebab menus. (#3546) * DOC-2578: Spelling error in tooltip for toggle button (#3547) * DOC-2578: Spelling error in tooltip for toggle button * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]> * DOC-2578: New `onSetup` function for context forms. (#3550) * DOC-2578: New onSetup function for context forms. * Update modules/ROOT/pages/7.6.0-release-notes.adoc * DOC-2578: General cleanup and structure formatting pre-release. * DOC-2578: New `back` function in `ContextFormApi` to go back to the previous toolbar. (#3558) * DOC-2578: New back function in ContextFormApi to go back to the previous toolbar. * Update modules/ROOT/pages/7.6.0-release-notes.adoc * New QuickbarInsertImage command that is executed by the quickimage button. (#3557) * Image selection was removed when calling nodeChanged while having focus inside the editor UI. (#3556) * DOC-2578: Add known issue for missing translations. * DOC-2578: Incorrect translation of `Cut Column` and `Copy Column` in Hebrew (#3559) * DOC-2578: Incorrect translation of and in Hebrew * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Karl Kemister-Sheppard <[email protected]> --------- Co-authored-by: Karl Kemister-Sheppard <[email protected]> * DOC-2578: Add new entry for Image Optimizer new plugin announcment. * DOC-2578: Add entry for new premium plugin Image Optimizer in release notes. * Update modules/ROOT/pages/7.6.0-release-notes.adoc * Update modules/ROOT/pages/changelog.adoc * DOC-2578: Comment out improvements for various last min discovered tickets. * DOC-2578: Comment out changelog title placeholders for post release fixes. * Update modules/ROOT/pages/contexttoolbar.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/contextform.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/changelog.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/changelog.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/partials/configuration/tinycomments_reply.adoc Co-authored-by: tiny-ben-tran <[email protected]> * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> * Update modules/ROOT/pages/7.6.0-release-notes.adoc Co-authored-by: Farzad Hayat <[email protected]> --------- Co-authored-by: CODE:AG <[email protected]> Co-authored-by: Farzad Hayat <[email protected]> Co-authored-by: ltrouton <[email protected]> Co-authored-by: tiny-ben-tran <[email protected]> Co-authored-by: Arvin(Jintao) Han <[email protected]>
1 parent 61fae0a commit e775358

File tree

14 files changed

+485
-99
lines changed

14 files changed

+485
-99
lines changed

antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ asciidoc:
2626
# product variables
2727
productname: TinyMCE
2828
productmajorversion: 7
29-
productminorversion: '7.5'
29+
productminorversion: '7.6'
3030
##### product name in codeblock
3131
prodnamecode: tinymce
3232
#### more names

modules/ROOT/examples/live-demos/comments-callback/example.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ const tinycomments_reply = (req, done, fail) => {
4848
})
4949
.then((req2) => {
5050
const commentUid = req2.commentUid;
51-
done({ commentUid });
51+
done({
52+
commentUid: replyUid,
53+
author: currentUser.id,
54+
authorName: currentUser.fullName
55+
});
5256
})
5357
.catch((e) => {
5458
fail(e);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<textarea id="context-toolbar-labels">
2+
<p>Clicking on the example image below will show the newly configured context toolbar.</p>
3+
4+
{{logofordemoshtml}}
5+
6+
<p>Select a word in this sentence, to see the other newly configured context toolbar.</p>
7+
8+
<p>Clicking on text should not invoke the context toolbar</p>
9+
</textarea>
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
tinymce.init({
2+
selector: 'textarea#context-toolbar-labels',
3+
height: 350,
4+
setup: (editor) => {
5+
editor.ui.registry.addContextToolbar('imagealignment', {
6+
predicate: (node) => node.nodeName.toLowerCase() === 'img',
7+
position: 'node',
8+
scope: 'node',
9+
items: [
10+
{
11+
name: 'Formatting',
12+
items: ['alignleft', 'aligncenter', 'alignright']
13+
},
14+
{
15+
label: 'Copy',
16+
items: ['copy', 'paste']
17+
}
18+
],
19+
});
20+
21+
editor.ui.registry.addContextToolbar('textselection', {
22+
predicate: (node) => !editor.selection.isCollapsed(),
23+
position: 'selection',
24+
scope: 'node',
25+
items: [
26+
{
27+
name: 'Format',
28+
items: ['bold', 'italic', 'underline']
29+
},
30+
],
31+
});
32+
},
33+
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:16px }'
34+
});

modules/ROOT/nav.adoc

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -412,18 +412,12 @@
412412
** xref:release-notes.adoc[Release notes for {productname}]
413413
*** {productname} 7.6.0
414414
**** xref:7.6.0-release-notes.adoc#overview[Overview]
415-
**** xref:7.6.0-release-notes.adoc#new-premium-plugin<s>[New Premium plugin<s>]
416-
**** xref:7.6.0-release-notes.adoc#new-open-source-plugin<s>[New Open Source plugin<s>]
415+
**** xref:7.6.0-release-notes.adoc#new-premium-plugin[New Premium plugin]
417416
**** xref:7.6.0-release-notes.adoc#accompanying-premium-plugin-changes[Accompanying Premium plugin changes]
418-
**** xref:7.6.0-release-notes.adoc#accompanying-premium-plugin-end-of-life-announcement[Accompanying Premium plugin end-of-life announcement]
419-
**** xref:7.6.0-release-notes.adoc#accompanying-open-source-plugin-end-of-life-announcement[Accompanying open source plugin end-of-life-announcement]
420417
**** xref:7.6.0-release-notes.adoc#accompanying-enhanced-skins-and-icon-packs-changes[Accompanying Enhanced Skins & Icon Packs changes]
421-
**** xref:7.6.0-release-notes.adoc#improvements[Improvements]
418+
// **** xref:7.6.0-release-notes.adoc#improvements[Improvements]
422419
**** xref:7.6.0-release-notes.adoc#additions[Additions]
423-
**** xref:7.6.0-release-notes.adoc#changes[Changes]
424420
**** xref:7.6.0-release-notes.adoc#bug-fixes[Bug fixes]
425-
**** xref:7.6.0-release-notes.adoc#security-fixes[Security fixes]
426-
**** xref:7.6.0-release-notes.adoc#deprecated[Deprecated]
427421
**** xref:7.6.0-release-notes.adoc#known-issues[Known issues]
428422
*** {productname} 7.5.1
429423
**** xref:7.5.1-release-notes.adoc#overview[Overview]

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

Lines changed: 314 additions & 84 deletions
Large diffs are not rendered by default.

modules/ROOT/pages/changelog.adoc

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,45 @@
44

55
NOTE: This is the {productname} Community version changelog. For information about the latest {cloudname} or {enterpriseversion} Release, see: xref:release-notes.adoc[{productname} Release Notes].
66

7-
== xref:7.6.0-release-notes.adoc[7.6.0 - 2024-12-04]
7+
== xref:7.6.0-release-notes.adoc[7.6.0 - 2024-12-11]
88

9-
//TODO
9+
=== Added
10+
* It is now possible to create labeled groups in context toolbars.
11+
// #TINY-11095
12+
// * New `contextsliderform` and `contextsizeinput` context form types.
13+
// #TINY-11342
14+
* New `back` function in `ContextFormApi` to go back to the previous toolbar.
15+
// #TINY-11344
16+
* New `QuickbarInsertImage` command that is executed by the `quickimage` button.
17+
// #TINY-11399
18+
* New `onSetup` function to the context form API.
19+
// #TINY-11494
20+
* New `placeholder` to the context form input field API.
21+
// #TINY-11459
22+
* New `disabled` option to restore the previous `readonly` mode behavior, allowing the editor to be displayed in a disabled state.
23+
// #TINY-11488
24+
25+
// === Improved
26+
// * Base64 data was not properly decoded due to unhandled URL-encoded characters.
27+
// #TINY-9548
28+
// * The `latin` list style type is now recognized as an alias for the `alpha` list style type.
29+
// #TINY-11515
30+
31+
=== Fixed
32+
* Image selection was removed when calling `+editor.nodeChanged()+` while having focus inside the editor UI.
33+
// #TINY-11437
34+
* Tooltip would not show for group toolbar button.
35+
// #TINY-11391
36+
* Changing the table row type when a `+contenteditable=false+` cell was selected would not work as expected.
37+
// #TINY-11383
38+
// * The `samp` format was being applied as a `block` level format, instead of an `inline` format.
39+
// #TINY-11390
40+
* Removed title attribute from dialog tree elements as they already have a tooltip.
41+
// #TINY-11470
42+
* Fixed CSS bundling for skin UI content CSS.
43+
// #TINY-11558
44+
* Fixed incorrect resource keys for CSS bundling JS files.
45+
// #TINY-11558
1046

1147
== xref:7.5-release-notes.adoc[7.5.0 - 2024-11-06]
1248

modules/ROOT/pages/contextform.adoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@ This relates to the form itself. The form specifications are:
4646
|`+position+` |This controls where the context toolbar will appear with regards to the current cursor.
4747
|`+scope+` |This controls whether the predicate (condition) is a `+node+`-based predicate, or an `+editor+`-based predicate. See context toolbar priority for more details.
4848
|`+commands+` |This is a list of the items to show in the context form. They can be either `+contextformbutton+` or `+contextformtogglebutton+`.
49+
|`+onSetup+`
50+
a|
51+
`+(ContextFormApi) => (ContextFormApi) => void+`
52+
53+
Optional default: `+() => () => {}+` - Function that's executed when the form is rendered. Once rendered, it returns a function that is executed when the context form is closed.
4954
|===
5055

5156
include::partial$context/positioning.adoc[leveloffset=+1]
@@ -100,12 +105,13 @@ Where the `+toggleButtonApi+` is the same as a regular toolbar toggle button.
100105

101106
=== formApi
102107

103-
Both `+contextformbutton+` and `+contextformtogglebutton+` are passed `+formApi+` in their `+onAction+` callback. The `+formApi+` has two functions:
108+
Both `+contextformbutton+` and `+contextformtogglebutton+` are passed `+formApi+` in their `+onAction+` callback. The `+formApi+` has three functions:
104109

105110
[cols="1,3",options="header"]
106111
|===
107112
|Functions |Description
108113
|`+hide+` |This will hide the form. By default, no button hides the form. It is the responsibility of the developer to hide the form in the `+onAction+` handler of buttons that require that the context form close after the action.
114+
|`+back+` |This will restore the previous toolbar. This is useful when you want to go back to the previous toolbar when you press back in the toolbar.
109115
|`+getValue+` |This will retrieve the value current typed in the input field.
110116
|===
111117

modules/ROOT/pages/contexttoolbar.adoc

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,41 @@ This example shows how the quickbars plugin adds the standard selection context
2727

2828
liveDemo::context-toolbar[height="600", tab="js"]
2929

30+
[[add-labels-and-groups-for-context-toolbar-buttons]]
31+
== Add labels and groups for context toolbar buttons
32+
33+
From {productname} 7.6.0 onward, registering a context toolbar allows specifying `items` as an object that supports grouping with optional names and labels. This improvement enhances toolbar usability by organizing buttons into titled or labeled groups.
34+
35+
The object structure takes two optional properties: `name` and `label`.
36+
37+
* `name`: property is used as the group's title for the group that contains the buttons.
38+
* `label`: property is used as a label for each group of buttons.
39+
40+
[NOTE]
41+
If neither `name` nor `label` are specified, the behavior defaults to ungrouped buttons.
42+
43+
The object structure for `items` is as follows:
44+
45+
.Example of a context toolbar configuration with groups and labels
46+
[source,js]
47+
----
48+
items: [
49+
{
50+
name: 'Formatting', // Optional, used as the group's title
51+
items: [ 'bold', 'italic' ] // Array of registered button names
52+
},
53+
{
54+
label: 'History', // Optional, used as a label for the group
55+
items: [ 'undo', 'redo' ] // Array of registered button names
56+
},
57+
{
58+
items: [ 'undo', 'italic' ] // No name or label specified, default behavior applies
59+
}
60+
]
61+
----
62+
63+
liveDemo::context-toolbar-labels[height="600", tab="js"]
64+
3065
== Launching a context toolbar programmatically
3166

3267
There is an `+editor+` event called `+contexttoolbar-show+` that can be fired to show a context toolbar at the current selection. The event takes a parameter `+toolbarKey+` which specifies the name of the registered context form or context toolbar to show.

modules/ROOT/pages/editor-important-options.adoc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ include::partial$configuration/external_plugins.adoc[leveloffset=+1]
3535

3636
include::partial$configuration/readonly.adoc[leveloffset=+1]
3737

38+
== Setting the editor in a disabled state
39+
40+
include::partial$configuration/disabled.adoc[leveloffset=+1]
41+
3842
== Executing custom functions while the editor starts (initializes)
3943

4044
include::partial$configuration/setup.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)