-
-
Notifications
You must be signed in to change notification settings - Fork 532
feat: pausing & resuming of a ydoc #1639
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
base: collaboration-plugins
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@blocknote/ariakit
@blocknote/code-block
@blocknote/core
@blocknote/mantine
@blocknote/react
@blocknote/server-util
@blocknote/shadcn
@blocknote/xl-docx-exporter
@blocknote/xl-multi-column
@blocknote/xl-odt-exporter
@blocknote/xl-pdf-exporter
commit: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome!!! Looks solid.
It does not yet implement merging the changes back into the old ydoc, but it should be fairly straight-forward to do.
I might be missing something here; but changes are merged right?
this._tiptapEditor.unregisterPlugin(yCursorPluginKey); | ||
this._tiptapEditor.unregisterPlugin(yUndoPluginKey); | ||
this._tiptapEditor.unregisterPlugin(ySyncPluginKey); | ||
this._tiptapEditor.registerPlugin(ySyncPlugin(nextFragment)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we also reregister yUndo? or not needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't hurt, can add.
Whoops outdated comment, yep. Changes get merged with Kevin's help |
This implements pausing and resuming of a ydoc, switching to a new ydoc that can be written to, and then switching back.
Screen.Recording.2025-04-24.at.19.22.27.mp4