Skip to content

Commit

Permalink
Merge branch 'feature/7.7.0/DOC-3132' into feature/7.7.0/DOC-3132_TIN…
Browse files Browse the repository at this point in the history
…Y-11670
  • Loading branch information
abhinavgandham authored Feb 18, 2025
2 parents 9ca36b0 + 85a2c2d commit 50974fc
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 4 deletions.
75 changes: 71 additions & 4 deletions modules/ROOT/pages/7.7.0-release-notes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,19 @@ include::partial$misc/admon-releasenotes-for-stable.adoc[]

The following premium plugin updates were released alongside {productname} {release-version}.

=== Export to PDF

The {productname} {release-version} release includes an accompanying release of the **Export to PDF** premium plugin.

**Export to PDF** Premium plugin includes the following improvement.

==== The `format` property in `exportpdf_converter_options` now accepts lowercase
// #TINY-11722

Previously, the `format` property in `exportpdf_converter_options` only accepted case-sensitive uppercase values, which lead to inconsistencies when generating PDF exports. This improvement ensures that lowercase values are now correctly recognized, making configuration more flexible and reducing potential formatting errors.

For information on the **Export to PDF** plugin, see: xref:exportpdf.adoc[Export to PDF].

=== Export to Word

The {productname} {release-version} release includes an accompanying release of the **Export to Word** premium plugin.
Expand Down Expand Up @@ -59,6 +72,13 @@ The {productname} {release-version} release includes an accompanying release of

**Comments** includes the following fixes.

==== Editing a comment and adding a mention to the comment would result in the mention not showing correctly after saving the comment.
// #TINY-11602

Previously, in the **Comments** premium plugin, an issue was identified where mentions were not displayed correctly when editing a comment, adding a mention, and then saving the comment.

{productname} {release-version} resolves this issue by ensuring that newly added mentions to an existing comment are displayed correctly.

==== Pressing Keyboard shorctut `cmd+alt+m` when cursor is on annotated content now opens and focuses the reply textarea.
// #TINY-11321

Expand All @@ -74,6 +94,27 @@ In previous versions of **Comments**, the side panel header blended into the bod

{productname} {release-version} improves this by enhancing the side panel header’s visibility, creating a clearer distinction from the body, and refining the overall UI aesthetics.

==== Editor now dispatches `Change` event after a comment is edited or a reply is created.
// #TINY-11802

Previously, when a comment was edited or replied to, the editor did not enter a dirty state. As a result, in embedded mode with the xref:save.adoc[Save] plugin, the save button remained disabled after replying to or editing a comment, which was not the expected behavior.

In {productname} {release-version}, this issue has been addressed. The editor now transitions to a dirty state when a comment is edited or replied to, ensuring that changes can be saved using the save button as intended.

==== Comment card jumps when editing a large comment in Chrome
// #TINY-11729

Previously, when editing a comment larger than the height of the comments sidebar, the sidebar would briefly jump before returning to its intended position. This caused visual disruptions that impacted the editing experience.

{productname} {release-version} resolves this issue by ensuring the comment sidebar remains stable, preventing unintended jumps when editing large comments.

==== Closing the comment kebab menu with keyboard would result in the editor dispatching a `blur` event.
// #TINY-11172

In previous versions of **Comments**, an issue was identified where the editor would trigger a `blur` event if the comment kebab menu was closed using the `escape` key. This occurred even when the editor still had focus, leading to confusing behavior.

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

For information on the **Comments** plugin, see: xref:introduction-to-tiny-comments.adoc[Comments].

=== Image Optimizer
Expand Down Expand Up @@ -107,18 +148,30 @@ This caused confusion in identifying the problem during setup.

{productname} {release-version} addresses this by providing a more detailed error message when the `uploadcare_public_key` is not configured.

==== Toolbar text field was not properly rendering focus.
// #TINY-11658

Previously, input elements lacked styling logic to display a border when focused, resulting in no visible indication of focus.
This issue has been resolved in {productname} {release-version}. Input elements now correctly display a border when focused, ensuring improved visual feedback.

==== It was possible to `tab` to a toolbar group that had all children disabled.
// #TINY-11665

Previously in the **Image Optimizer** premium plugin, a fallback mechanism caused focus to shift to the nearest ancestor element. As a result, if focus was applied to a disabled input, its container would receive the focus.

{productname} {release-version} resolves this issue by ensuring that containers with only disabled elements are no longer focusable, preventing unintended focus behavior.

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

[[improvements]]
== Improvements

{productname} {release-version} also includes the following improvement<s>:

=== <TINY-vwxyz 1 changelog entry>
// #TINY-vwxyz1

// CCFR here.
=== Added `link_attributes_postprocess` option that allows overriding attributes of a link inserted through the link dialog.
// #TINY-11707

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.

[[additions]]
== Additions
Expand Down Expand Up @@ -162,6 +215,13 @@ the help dialog would not open if the plugin was disabled, leading to confusion.

{productname} {release-version} addresses this issue by ensuring that if the help plugin is disabled, the screen reader announces only "Rich Text Area." If the help plugin is enabled, the screen reader announces "Rich Text Area. Press `ALT-0` for help.".

=== The `semantics` element in MathML was not properly preserved when `annotation` elements were allowed.
// #TINY-11755

Previously, in {productname}, an issue was identified in which the `semantics` MathML element was removed, even when a specific annotation element was allowed by the `allow_mathml_annotation_encodings` property. As a result, the generated MathML was invalid because the annotation element must be a child of a `semantics` element. This also caused rendering issues in some browsers.

In {productname} {release-version}, this issue has been resolved by preserving the `semantics` element whenever the `allow_mathml_annotation_encodings` property is set to a non-empty array. This ensures that valid MathML is generated, improving compatibility with third-party tools and browser rendering.

=== Toolbar groups had both a `title` attribute and a custom tooltip, causing overlapping tooltips
// #TINY-11768

Expand All @@ -176,6 +236,13 @@ Previously, an issue occurred where toggling a caption on a floating image did n

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.

=== Fixed keyboard navigation for size inputs in context forms.
// #TINY-11394

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.

With the release of {productname} {release-version}, keyboard navigation has been implemented for these elements, ensuring seamless accessibility and improved usability.

[[known-issues]]
== Known issues

Expand Down
2 changes: 2 additions & 0 deletions modules/ROOT/pages/link.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ include::partial$configuration/link_rel_list.adoc[leveloffset=+1]

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

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

include::partial$misc/plugin-toolbar-button-id-boilerplate.adoc[]

include::partial$misc/plugin-menu-item-id-boilerplate.adoc[]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[[link_attributes_postprocess]]
== `+link_attributes_postprocess+`

This option allows overriding attributes of an inserted link.

*Type:* `+Function+`

*Default value:* `+undefined+`

=== Example: using `+link_attributes_postprocess+`

[source,js]
----
tinymce.init({
selector: 'textarea', // change this value according to your HTML
plugins: 'link',
toolbar: 'link',
link_attributes_postprocess: (attrs) => {
console.log(attrs);
if (attrs.rel) {
attrs.rel += 'noreferrer';
}
}
});
----

0 comments on commit 50974fc

Please sign in to comment.