Skip to content

Commit

Permalink
DOC-2498: Pasting plain text with the mceInsertClipboardContent com…
Browse files Browse the repository at this point in the history
…mand is now a synchronous action, to match TinyMCE core behaviour. (#3492)

* DOC-2498: Pasting plain text with the mceInsertClipboardContent command is now a synchronous action, to match TinyMCE core behaviour.

* Update modules/ROOT/pages/7.5-release-notes.adoc

Co-authored-by: Farzad Hayat <[email protected]>

* Update modules/ROOT/pages/7.5-release-notes.adoc

* Update modules/ROOT/pages/7.5-release-notes.adoc

Co-authored-by: tiny-ben-tran <[email protected]>

---------

Co-authored-by: Farzad Hayat <[email protected]>
Co-authored-by: tiny-ben-tran <[email protected]>
  • Loading branch information
3 people authored Nov 4, 2024
1 parent 22be0a9 commit edd57cc
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions modules/ROOT/pages/7.5-release-notes.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,22 @@ This behavior led to confusion and increased the risk of interacting with obsole

In {productname} {release-version}, this issue has been resolved. Now, when annotated content is deleted, the associated conversation card is automatically removed from the sidebar.

=== PowerPaste

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

**PowerPaste** Premium plugin includes the following improvement.

==== Pasting plain text with the `mceInsertClipboardContent` command is now a synchronous action, to match {productname}'s core behaviour.

Previously in {productname}, when the Powerpaste plugin was enabled, the `mceInsertClipboardContent` command was executed asynchronously. This caused compatibility issues with the xref:markdown.adoc[Markdown] plugin, as the Markdown plugin relied on synchronous command execution. As a consequence, the Markdown plugin was effectively disabled when Powerpaste was active.

{productname} {release-version} addresses this issue. The `mceInsertClipboardContent` command has been updated to be conditionally synchronous when the Powerpaste plugin is enabled. If the content is plaintext (e.g., `+editor.execCommand('mceInsertClipboardContent', false, { text: content })+`), the command is executed synchronously, aligning it with {productname}'s core functionality. If the content is HTML (e.g., `+editor.execCommand('mceInsertClipboardContent', false, { html: content })+`), the command remains asynchronous, as it requires async operations for HTML content.

As a result, the `mceInsertClipboardContent` command now always executes synchronously when pasting plaintext, allowing both Powerpaste and Markdown plugins to operate together seamlessly, restoring full functionality for Markdown users.

For information on the **PowerPaste** plugin, see: xref:introduction-to-powerpaste.adoc[Introduction to PowerPaste].

==== Use default 'Anon' value for `tinycomments_author` and `tinycomments_author_name` options when the provided value is an empty string.
// #TINY-11323

Expand Down

0 comments on commit edd57cc

Please sign in to comment.