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!
marijn
April 3, 2019, 10:13am
2
A widget decoration is the easiest way to do this. Alternatively, use coordsAtPos
to overlay something over the editor.
6 Likes
Beautiful - thanks @marijn .
vicatcu
September 17, 2020, 5:43pm
4
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.