-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
Initialize document #16
Comments
Hi @amilich, y-prosemirror takes over the document content of the ProseMirror editor after it has been bound to it. The "initial" content, that you set when creating the ProseMirror editor must be ignored in order to converge content with other clients. You can set the "initial" content after you created the editor. It should be empty. But please also have a look at this question in order to understand why it is not a good idea to work with "initial" content: yjs/yjs-demos#16 |
Thank you, this is really helpful
Andrew
…On Wed, Apr 15, 2020 at 1:57 PM Kevin Jahns ***@***.***> wrote:
Hi @amilich <https://github.com/amilich>,
y-prosemirror takes over the document content of the ProseMirror editor
after it has been bound to it. The "initial" content, that you set when
creating the ProseMirror editor must be ignored in order to converge
content with other clients.
You can set the "initial" content after you created the editor. It should
be empty. But please also have a look at this question in order to
understand why it is not a good idea to work with "initial" content:
yjs/yjs-demos#16 <yjs/yjs-demos#16>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#16 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAOWUCWKD7IV3BHBDHIS6L3RMXYPZANCNFSM4MGI7IBQ>
.
|
Hello everyone and sorry for maybe dumb question. I've read your messages and yjs/yjs-demos#16 too, but still can't figure out what is the right way to do the following:
What is the right way to initialize a yjs "room" with the content that already exists? |
How can you set the initial contents of the Y.doc with some existing ProseMirror node view?
The text was updated successfully, but these errors were encountered: