Collaborative Editor: Show Other Users Cursor Position

#1

I’m looking at the collaborative editor sample, and I’m wondering how I might go about showing where other user’s cursors are within the document.

What would be the most appropriate visual hook within the ProseMirror editor to show say a colored “psudo” cursor (like say Google Docs does).

Thanks!

0 Likes

#2

A widget decoration is the easiest way to do this. Alternatively, use coordsAtPos to overlay something over the editor.

2 Likes

#3

Beautiful - thanks @marijn.

0 Likes