Skip to content

Commit 595d0df

Browse files
Merge branch 'feature/7.7.0/DOC-3132' into feature/7.7.0/DOC-3132_TINY-11661
2 parents cab298b + 54ca317 commit 595d0df

File tree

7 files changed

+181
-2
lines changed

7 files changed

+181
-2
lines changed

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

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,13 @@ In previous versions of **Comments**, an issue was identified where the editor w
115115

116116
{productname} {release-version} resolves this issue by ensuring that focus is properly managed when closing the kebab menu, rather than relying on the browser. This ensures that the editor does not trigger any `blur` events.
117117

118+
==== Improved visual indication of keyboard focus for a comment annotation when there is an image inside.
119+
// #TINY-11596
120+
121+
In previous versions of **Comments**, annotated non-text elements occasionally displayed a double bottom border when selected, leading to a visual inconsistency that appeared buggy and clashed with existing border styles.
122+
123+
With the release of {productname} {release-version}, dedicated styles for selected non-text element annotations have been introduced. This enhancement improves the visual clarity of comment annotations on non-text elements such as images and videos.
124+
118125
For information on the **Comments** plugin, see: xref:introduction-to-tiny-comments.adoc[Comments].
119126

120127
=== Image Optimizer
@@ -163,10 +170,40 @@ Previously in the **Image Optimizer** premium plugin, a fallback mechanism cause
163170

164171
For information on the **Image Optimizer** plugin, see: xref:uploadcare.adoc[Image Optimizer].
165172

173+
=== Revision History
174+
175+
The {productname} {release-version} release includes an accompanying release of the **Revision History** premium plugin.
176+
177+
**Revision History** includes the following addition.
178+
179+
==== New `revisionhistory_allow_restore` option to control restoration of old revisions
180+
// #TINY-11746
181+
182+
{productname} {release-version} introduces a new `revisionhistory_allow_restore` option, which provides a way to control if a user can restore revisions. By default, it is set to `+true+`, setting it to `+false+` prevents users from restoring previous versions.
183+
184+
This improvement enhances access control within the **Revision History** plugin, providing greater flexibility for managing revision restoration.
185+
186+
For more information on the **Revision History** plugin, see: xref:revisionhistory.adoc[Revision History].
187+
188+
=== Accessibility Checker
189+
190+
The {productname} {release-version} release includes an accompanying release of the **Accessibility Checker** premium plugin.
191+
192+
**Accessibility Checker** includes the following fix.
193+
194+
==== Update form validation error message color to be the same as the error text color.
195+
// #TINY-11657
196+
197+
In previous versions of the **Accessibility Checker** premium plugin, the form validation error message had insufficient color contrast in dark mode, failing to meet link:https://www.w3.org/WAI/WCAG2AA-Conformance[WCAG AA] standards and reducing visibility.
198+
199+
With the release of {productname} {release-version}, this issue has been resolved by updating the error message color to be the same as the error text color, ensuring improved visibility and compliance with link:https://www.w3.org/WAI/WCAG2AA-Conformance[WCAG AA] contrast standards.
200+
201+
For information on the **Accessibility Checker** plugin, see: xref:a11ychecker.adoc[Accessibility Checker].
202+
166203
[[improvements]]
167204
== Improvements
168205

169-
{productname} {release-version} also includes the following improvement<s>:
206+
{productname} {release-version} also includes the following improvements:
170207

171208
=== Not specifying a notification type (or specifying an incorrect one) now defaults to 'info'.
172209
// #TINY-11661
@@ -175,6 +212,16 @@ In earlier versions of {productname}, an undefined or incorrect `type` property
175212

176213
With the release of {productname} {release-version}, this behavior has been improved. The `type` property now defaults to `info` when an invalid or missing value is detected, resulting in a proper looking notification that is easy to understand.
177214

215+
=== Extended the `forceReadOnly` functionality to support the new `disabled` option in addition to readonly mode.
216+
// #TINY-11490
217+
218+
In previous versions of {productname}, the editor would transition to read-only mode if the API key was missing, invalid, or if the domain was invalid. With the release of {productname} {release-version}, this behavior has been updated to instead activate disabled mode in these scenarios.
219+
220+
=== Added `link_attributes_postprocess` option that allows overriding attributes of a link inserted through the link dialog.
221+
// #TINY-11707
222+
223+
Previously in the xref:link.adoc[Link] plugin, there was no ability to override attributes of a link. With the release of {productname} {release-version}, a new option xref:link.adoc#link_attributes_postprocess[link_attributes_postprocess] has been added that allows this functionality.
224+
178225
[[additions]]
179226
== Additions
180227

@@ -191,6 +238,11 @@ With the release of {productname} {release-version}, this behavior has been impr
191238

192239
{productname} <x.y[.z]> also includes the following bug fix<es>:
193240

241+
=== Dialog menu dropdowns now close when scrolling the editor container.
242+
// #TINY-11398
243+
244+
Previously, dialog menu dropdowns were not positioned correctly after scrolling the editor container, causing them to remain visible even when the editor was no longer in view. This resulted in dropdowns being displayed without their corresponding dialog context. {productname} {release-version} updates the behavior to ensure that dialog menu dropdowns close on the window scroll event, preventing them from appearing out of context.
245+
194246
=== The `insertContent` API was not replacing selected non-editable elements correctly.
195247
// #TINY-11714
196248

@@ -231,6 +283,34 @@ In previous versions of {productname}, hovering over toolbar menu item would dis
231283

232284
{productname} {release-version} resolves this issue by replacing the `title` attribute with the `aria-label` attribute for toolbar groupings, preventing the default browser tooltip from appearing.
233285

286+
=== Expanding selection to a word didn't work inside inline editing host elements.
287+
// #TINY-11304
288+
289+
Previously, an issue occurred where the selection did not expand as expected when using the `editor.selection.expand({ type: 'word' })` API when the selection was within an inline edit host element inside a non-editable parent.
290+
291+
This has been resolved in {productname} {release-version}, ensuring that the expanded selection now remains within the boundaries of the editable host element.
292+
293+
=== Keyboard navigation would get stuck on the 'more' toolbar button.
294+
// #TINY-11762
295+
296+
Previously, an issue was identified where keyboard navigation using the Tab key would become stuck at the "Show More" button in the toolbar. This occurred because hidden toolbar elements were incorrectly detected as valid tab targets, disrupting seamless navigation and negatively impacting the user experience.
297+
298+
In {productname} {release-version}, this issue has been resolved by implementing more precise filtering of viable tab targets. As a result, keyboard navigation now functions smoothly without getting stuck.
299+
300+
=== The `float` property was not properly removed from the image when converting an image into a captioned image.
301+
// #TINY-11670
302+
303+
Previously, an issue occurred where toggling a caption on a floating image did not remove the float property from the image, causing the caption text to be incorrectly positioned.
304+
305+
In {productname} {release-version}, this issue has been resolved by ensuring that the float property is removed when toggling the caption. As a result, the image and caption text now align correctly.
306+
307+
=== Fixed keyboard navigation for size inputs in context forms.
308+
// #TINY-11394
309+
310+
Previously, input and slider elements in the context toolbar did not support keyboard navigation, preventing users from accessing and adjusting these elements via the keyboard.
311+
312+
With the release of {productname} {release-version}, keyboard navigation has been implemented for these elements, ensuring seamless accessibility and improved usability.
313+
234314
[[known-issues]]
235315
== Known issues
236316

modules/ROOT/pages/changelog.adoc

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,52 @@
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.7.0-release-notes.adoc[7.7.0 - 2025-02-19]
8+
9+
=== Added
10+
* `link_attributes_postprocess` option that allows overriding attributes of a link that would be inserted through the link dialog.
11+
// #TINY-11707
12+
13+
=== Improved
14+
* Improved visual indication of a keyboard focus for a comment annotation when there is an image inside.
15+
// #TINY-11596
16+
* Not specifying a notification type (or specifying incorrect one) now defaults to 'info'.
17+
// #TINY-11661
18+
* Improved visual separation of comments side panel header.
19+
// #TINY-11715
20+
21+
=== Changed
22+
- Changed the `link` plugin behavior to move the cursor behind a link when inserted or edited via the UI. Patch contributed by Philipp91.
23+
// ##GH-9998
24+
25+
=== Fixed
26+
* Keyboard navigation for size inputs in context forms.
27+
// #TINY-11394
28+
* Keyboard navigation for context form sliders.
29+
// #TINY-11482
30+
* The `insertContent` API was not replacing selected non-editable elements correctly.
31+
// #TINY-11714
32+
* Context toolbar inputs had incorrect margins.
33+
// #TINY-11624
34+
* Iframe aria text used to suggest to open help dialog even when the help plugin was not enabled.
35+
// #TINY-11672
36+
* Preview Dialog incorrectly opened anchor links in a new tab.
37+
// #TINY-11740
38+
* The `float` property was not properly removed on the image when converting a image into a captioned image.
39+
// #TINY-11670
40+
* Expanding selection to a word didn't work inside inline editing host elements.
41+
// #TINY-11304
42+
* The `semantics` element in MathML was not properly retained when `annotation` elements was allowed.
43+
// #TINY-11755
44+
* It was possible to tab to a toolbar group that had all children disabled.
45+
// #TINY-11665
46+
* Keyboard navigation would get stuck on the 'more' toolbar button.
47+
// #TINY-11762
48+
* Toolbar groups had both a `title` attribute and a custom tooltip, causing overlapping tooltips.
49+
// #TINY-11768
50+
* Toolbar text field was properly rendering focus.
51+
// #TINY-11658
52+
753
== xref:7.6.1-release-notes.adoc[7.6.1 - 2025-01-22]
854

955
=== Fixed

modules/ROOT/pages/cloud-troubleshooting.adoc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,4 +175,6 @@ This message is shown when {productname} is loaded from a domain that has not be
175175

176176
==== Solution
177177

178-
Please request that your admin add this domain to the approved domains in the Customer Portal. For more information see xref:cloud-troubleshooting.adoc#domain-not-registered[Domain not registered]
178+
Please request that your admin add this domain to the approved domains in the Customer Portal. For more information see xref:cloud-troubleshooting.adoc#domain-not-registered[Domain not registered]
179+
180+
NOTE: From xref:7.6.0-release-notes.adoc[{productname} 7.6.0] onwards, the editor uses disabled mode instead of read-only mode.

modules/ROOT/pages/link.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ include::partial$configuration/link_rel_list.adoc[leveloffset=+1]
4646

4747
include::partial$configuration/link_target_list.adoc[leveloffset=+1]
4848

49+
include::partial$configuration/link_attributes_postprocess.adoc[leveloffset=+1]
50+
4951
include::partial$misc/plugin-toolbar-button-id-boilerplate.adoc[]
5052

5153
include::partial$misc/plugin-menu-item-id-boilerplate.adoc[]

modules/ROOT/pages/revisionhistory.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ include::partial$configuration/revisionhistory_fetch.adoc[leveloffset=+1]
109109

110110
include::partial$configuration/revisionhistory_fetch_revision.adoc[leveloffset=+1]
111111

112+
include::partial$configuration/revisionhistory_allow_restore.adoc[leveloffset=+1]
113+
112114
include::partial$configuration/revisionhistory_author.adoc[leveloffset=+1]
113115

114116
include::partial$configuration/revisionhistory_display_author.adoc[leveloffset=+1]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
[[link_attributes_postprocess]]
2+
== `+link_attributes_postprocess+`
3+
4+
This option allows overriding attributes of an inserted link.
5+
6+
*Type:* `+Function+`
7+
8+
*Default value:* `+undefined+`
9+
10+
=== Example: using `+link_attributes_postprocess+`
11+
12+
[source,js]
13+
----
14+
tinymce.init({
15+
selector: 'textarea', // change this value according to your HTML
16+
plugins: 'link',
17+
toolbar: 'link',
18+
link_attributes_postprocess: (attrs) => {
19+
console.log(attrs);
20+
if (attrs.rel) {
21+
attrs.rel += 'noreferrer';
22+
}
23+
}
24+
});
25+
26+
----
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[[revisionhistory_allow_restore]]
2+
== `revisionhistory_allow_restore`
3+
4+
The `revisionhistory_allow_restore` option enables or disables the ability to restore a revision.
5+
6+
*Type:* `+Boolean+`
7+
8+
*Default vale:* `+true+`
9+
10+
=== Example: Using `revisionhistory_allow_restore`
11+
12+
[source,js]
13+
----
14+
tinymce.init({
15+
selector: 'textarea', // change this value according to your HTML
16+
plugins: 'revisionhistory',
17+
toolbar: 'revisionhistory',
18+
revisionhistory_fetch: () => Promise.resolve([]), // Required option for the plugin - replace with actual API request
19+
revisionhistory_allow_restore: false
20+
});
21+
----

0 commit comments

Comments
 (0)