Repository navigation
Tracking user caret #4955
Answered
by
webzwo0i
alexfrench
asked this question in
Q&A
Tracking user caret
#4955
|
Hi everyone. I'm starting to look at Etherpad for a new application and wondered if someone could recommend the best way to track a user's caret position in a plugin? I've not seen an obvious hook at first look through the documentation, however, I'm sure I've simply missed something. Thanks. |
Answered by
webzwo0i
Mar 24, 2021
Replies: 2 comments 3 replies
|
Cursor or caret? Caret is flashing bar, cursor is mouse pointer. |
3 replies
|
Both will work. https://github.com/redhog/ep_cursortrace/ uses aceEditEvent to track other people's carets (it sends the new position to the server). aceEditEvent fires when the pad contents change, while aceSelectionChanged fires when the caret position changes. |
0 replies
Answer selected by
JohnMcLear
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Both will work. https://github.com/redhog/ep_cursortrace/ uses aceEditEvent to track other people's carets (it sends the new position to the server). aceEditEvent fires when the pad contents change, while aceSelectionChanged fires when the caret position changes.