Skip to content

Conversation

YousefED
Copy link
Collaborator

@YousefED YousefED commented Aug 3, 2023

#289 introduced a bug for collaboration.

This line https://github.com/yjs/y-prosemirror/blob/6349748b44859eacb8e54ef94757e2f59bb89113/src/plugins/sync-plugin.js#L193C20-L193C20 would evaluate to true, making y-prosemirror think the user changed the initialcontent intentionally.

This basically always reset the editor to an empty state

@vercel
Copy link

vercel bot commented Aug 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
blocknote-website ✅ Ready (Inspect) Visit Preview Aug 3, 2023 6:42pm

@YousefED YousefED changed the title fix initialcontent collaboration fix: collaboration initial content bug Aug 3, 2023
@matthewlipski matthewlipski merged commit c70fe6e into main Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants