ckeditor5 icon indicating copy to clipboard operation
ckeditor5 copied to clipboard

Copy and paste suggestions from the editor did not remove deleted ones

Open huzedong2015 opened this issue 7 months ago • 3 comments

📝 Provide detailed reproduction steps (if any)

  1. open link

  2. Copy content “about this made-up”

Image

  1. Paste to any position

✔️ Expected result

The content pasted into the editor is: “made up”

❌ Actual result

The content pasted into the editor is: “about this made-up”

❓ Possible solution

If pasting suggestions from Word into an editor, it is expected to work

unknown

📃 Other details

  • Browser: Chrome 120
  • OS: Win11
  • First affected CKEditor version: online
  • Installed CKEditor plugins: online

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

huzedong2015 avatar Jun 10 '25 07:06 huzedong2015

cc @scofalik Could TC integrate with "copy" this way?

Reinmar avatar Jun 12 '25 07:06 Reinmar

In theory - it seems so. We would need to execute discard mechanisms for these suggestions when processing content in the clipboard. In reality - I am afraid it may not be straightforward to implement, given how track changes works internally. Also, we'd need to consider some more tricky suggestions, e.g. suggestions on tables when a part of the table is selected. It should work, but there's some risk. Finally -- format suggestions (the blue ones) should probably be applied for these features where they are not applied immediately in the content (e.g. blockquote, merge cells).

scofalik avatar Jun 12 '25 07:06 scofalik

Can I implement some simple scenarios through plugins

huzedong2015 avatar Jun 17 '25 06:06 huzedong2015