ueberdosis / tiptap

The headless rich text editor framework for web artisans.
https://tiptap.dev
MIT License
24.66k stars 2.06k forks source link

[Bug]: Duplicate "entangled" collaboration cursors in Yjs fragments across parent doc & sibling subdocs #5271

Open ideosyncretic opened 1 week ago

ideosyncretic commented 1 week ago

Affected Packages

extension-collaboration-cursor, extension-collaboration, react

Version(s)

2.4.0

Bug Description

When using Liveblocks and Yjs subdocuments, TipTap collaboration cursors on fragments become duplicated (appearing in other fragments) and "entangled" (moving in tandem) across the parent Y.Doc and sibling subdocs, depending on the length of fragment content.

https://github.com/ueberdosis/tiptap/assets/19484719/20a18a1d-d5cc-4274-9542-2151d08b03dd

Browser Used

Chrome

Code Example URL

https://github.com/ideosyncretic/liveblocks-tiptap-yjs-subdocs-collabcursor

Expected Behavior

Collaboration cursor state should not sync to unrelated fragments.

Additional Context (Optional)

Dependency Updates

andrictham commented 4 days ago

Any updates on this one?