Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: collaboration initial content bug #296

Merged
merged 1 commit into from
Aug 3, 2023

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
3 checks passed
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.

None yet

2 participants