payload icon indicating copy to clipboard operation
payload copied to clipboard

Editing a copied inline block also modifies the original

Open lorand-kis opened this issue 2 months ago • 2 comments

Describe the Bug

Reopening the issue #14130 as it is not fixed in all cases.

Editing a copied inline block still modifies the original if selecting and copying multiple elements in the rich text editor.

Link to the code that reproduces this issue

https://github.com/payloadcms/payload

Reproduction Steps

  1. Create a collection with a rich-text-editor containing a block like in #14130
  2. pnpm dev
  3. Go to a post and create an inline block as well as several other paragraphs
  4. Copy a block as well as some neighboring elements and paste them below to duplicate them.
  5. Modify either of the two, save the post and refresh the page; observe the value of the other; it also changes.

Which area(s) are affected? (Select all that apply)

plugin: richtext-lexical

Environment Info

payload: 3.60.0
next: 15.4.4

For screenshots of the issue please check my comment in the previous thread: https://github.com/payloadcms/payload/issues/14130#issuecomment-3424294915

lorand-kis avatar Nov 11 '25 07:11 lorand-kis

Sorry for all the status changes, I messed up with Linear sync. PR on the way

GermanJablo avatar Nov 26 '25 13:11 GermanJablo

No worries, thanks a lot for looking into this!

lorand-kis avatar Nov 26 '25 18:11 lorand-kis

🚀 This is included in version v3.66.0

github-actions[bot] avatar Dec 03 '25 21:12 github-actions[bot]

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.

github-actions[bot] avatar Dec 11 '25 05:12 github-actions[bot]