yjs / y-prosemirror

ProseMirror editor binding for Yjs
https://demos.yjs.dev/prosemirror/prosemirror.html
MIT License
355 stars 124 forks source link

fix: avoid throwing an exception if the current selection no longer makes sense when initializing ySyncPlugin #171

Closed gvergnaud closed 1 week ago

gvergnaud commented 1 week ago

Fixes https://github.com/yjs/y-prosemirror/issues/170.

dmonad commented 1 week ago

Awesome PR!

It took me just a few minutes and saved me a lot of time. Thanks!!

Will merge, and release now. There should be a new release with a fix in a few minutes.