-
Notifications
You must be signed in to change notification settings - Fork 51
Description
I'm using Quill with React, Yjs, react-quill, y-quill, y-websocket, and quill-cursors. Everything works great with cursors (showing a remote users activity with a line without a flag) and with flags as long as there are no remounts. After a remount, the cursors continue to work but the flags stop showing up. This is because quillEditor.getModule('cursors').cursors() is empty. Before a remount, cursors() returns an array of users who are editing the doc, but after a remount, cursors() is always empty.
I've tried various combinations of saving (useRef) or recreating quill, cursors, binding, etc. For the most part, I fould the best approach is to store the WebsocketProvider, Y.Doc, Y.Text and then recreate the ReactQuill.getEditor, Quill.getModule('cursors'), and y-quill QuillBinding. I've tried different combinations, but all other combinations cause some other more serious problem (e.g. cursors stop working altogether).
I'm new to Quill, Yjs, etc., and I'm not really familiar with the relationship between all the packages, so not sure if this is a bug or something I'm doing wrong.
Any insights on what could be causing this or maybe just an explanation of how cursors() is populated?
thanks!