Collaborative Editor: Show Other Users Cursor Position

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!

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

4 Likes

Beautiful - thanks @marijn.

Can you share any feedback about how taking this advice went and where you ended up? We want to do something similar in a project I’m currently working on.