Collaboration demo do not sync comment data #4911
Replies: 1 comment
-
|
Comment data does not sync in the Collaboration demo because only the document content and cursors are synced by default with Yjs. The commentPlugin and discussionPlugin manage comments and discussions locally—they are not integrated with Yjs or any collaborative provider out of the box, so comment state and discussion threads do not sync between clients in collaborative sessions docs discussionPlugin code. To enable collaborative comment syncing, you would need to explicitly bridge comment/discussion state to Yjs or another provider. Currently, there’s no built-in support or example for this in Plate v49.0.0 collaboration demo docs. Comments added via the commentPlugin are only visible on the local editor instance unless you implement your own syncing logic. For the editor initialization issue (empty/unresponsive editor), set To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
The collaborative editing demo code can sync code changes, but it seems unable to sync comments
Video
2025-11-20.17.50.41.mov
Reproduction URL
No response
Reproduction steps
Plate version
49.0.0
Slate React version
1.0.2
Screenshots
Logs
Browsers
No response
Beta Was this translation helpful? Give feedback.
All reactions