Skip to content

Commit 2009c6a

Browse files
Merge branch 'feature/7.7.0/DOC-3132' into feature/7.7.0/DOC-3132_TINY-11490
2 parents eb1ed89 + 73d18ec commit 2009c6a

File tree

4 files changed

+93
-0
lines changed

4 files changed

+93
-0
lines changed

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

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,11 @@ For information on the **Image Optimizer** plugin, see: xref:uploadcare.adoc[Ima
173173

174174
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.
175175

176+
=== Added `link_attributes_postprocess` option that allows overriding attributes of a link inserted through the link dialog.
177+
// #TINY-11707
178+
179+
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.
180+
176181
[[additions]]
177182
== Additions
178183

@@ -229,6 +234,20 @@ In previous versions of {productname}, hovering over toolbar menu item would dis
229234

230235
{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.
231236

237+
=== The `float` property was not properly removed from the image when converting an image into a captioned image.
238+
// #TINY-11670
239+
240+
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.
241+
242+
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.
243+
244+
=== Fixed keyboard navigation for size inputs in context forms.
245+
// #TINY-11394
246+
247+
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.
248+
249+
With the release of {productname} {release-version}, keyboard navigation has been implemented for these elements, ensuring seamless accessibility and improved usability.
250+
232251
[[known-issues]]
233252
== Known issues
234253

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/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[]
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+
----

0 commit comments

Comments
 (0)