BitPhinix / slate-yjs

Yjs binding for Slate
https://docs.slate-yjs.dev
MIT License
508 stars 72 forks source link

CursorEditor sending cursor position not working #410

Open ghost opened 1 year ago

ghost commented 1 year ago

Hi! I am trying to clear a remote user's cursor position using CursorEditor.sendCursorPosition(editor, null). This is similar to the approach taken in useUnsetCursorPositionOnBlur (which also does not work). I am trying to remove a user's cursor if the slate editor is blurred. I see no errors or warnings in the console. It doesn't work. The problem, I think, lies in the sendCursorPosition function.