I’m working with yjs and prosemirror, as part of this I needed a way to save Y.Doc back into a prosemirror parsable json structure. This seems to be something that has been requested several times in the issues and forums.
Would you be open to a PR to contribute this utility method to the y-prosemirror codebase?
Okay, it’s already written internally – I’ll contribute once it’s better tested.
In a similar vein I feel like I’ve gotten my head around the majority of the ecosystem at this point but one thing is eluding me. We have a lot of existing prosemirror documents that need to be made collaborative, but it isn’t clear to me how to do this, it feels like we need a way to init the Y.Doc from a prosemirror JSON when there isn’t any binary state available. But I can’t find any exposed API’s to enable this
You can shim the Dom using jsdom. I use it to test y-prosemirror in nodejs. It should be possible to do it without prosemirror-view. That would be the ideal solution. But you probably want PMs schema validation. So it should be passed through the PM packages.