Skip to content

fix: collaboration initial content bug - #296

Merged
matthewlipski merged 1 commit into
mainfrom
fix-initialcontent-collab
Aug 3, 2023
Merged

matthewlipski merged 1 commit into
mainfrom
fix-initialcontent-collab

Conversation

@YousefED

@YousefED YousefED commented Aug 3, 2023

Copy link
Copy Markdown
Collaborator

#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

vercel Bot commented Aug 3, 2023 •

Copy link
Copy Markdown

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

This branch was successfully deployed

1 active deployment
Preview – blocknote-website — fb299e52 Deployed Aug 3, 2023 by vercel[bot]
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