yjs / y-prosemirror

ProseMirror editor binding for Yjs

Home Page:https://demos.yjs.dev/prosemirror/prosemirror.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Does `prosemirrorToYXmlFragment` really lose hystory?

remorses opened this issue · comments

The prosemirrorToYXmlFragment documentation says "note that this function should not be used to rehydrate a Y.Doc from a database once collaboration has begun as all history will be lost"

But reading the code it doesn't look like the yjs doc history is being lost, it seems it applies any update from the prosemirror node to the yjs doc, am i right?

export function prosemirrorToYXmlFragment (doc, xmlFragment) {

Yes.