Editing a copied inline block also modifies the original
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
- Create a collection with a rich-text-editor containing a block like in #14130
- pnpm dev
- Go to a post and create an inline block as well as several other paragraphs
- Copy a block as well as some neighboring elements and paste them below to duplicate them.
- 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
Sorry for all the status changes, I messed up with Linear sync. PR on the way
No worries, thanks a lot for looking into this!
🚀 This is included in version v3.66.0
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.