Skip to content

Commit edd57cc

Browse files
kemister85Farzad Hayattiny-ben-tran
authored
DOC-2498: Pasting plain text with the mceInsertClipboardContent command 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]>
1 parent 22be0a9 commit edd57cc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,22 @@ This behavior led to confusion and increased the risk of interacting with obsole
179179

180180
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.
181181

182+
=== PowerPaste
183+
184+
The {productname} {release-version} release includes an accompanying release of the **PowerPaste** premium plugin.
185+
186+
**PowerPaste** Premium plugin includes the following improvement.
187+
188+
==== Pasting plain text with the `mceInsertClipboardContent` command is now a synchronous action, to match {productname}'s core behaviour.
189+
190+
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.
191+
192+
{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.
193+
194+
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.
195+
196+
For information on the **PowerPaste** plugin, see: xref:introduction-to-powerpaste.adoc[Introduction to PowerPaste].
197+
182198
==== Use default 'Anon' value for `tinycomments_author` and `tinycomments_author_name` options when the provided value is an empty string.
183199
// #TINY-11323
184200

0 commit comments

Comments
 (0)