How can I get the selection positions? #7558
Unanswered
akarelas
asked this question in
Questions & Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My tiptap editor works, I use the official nuxt way of using tiptap, but I don't know how to get the start & end positions of my selection (or of the cursor when I have nothing selected).
This is my code:
The important part in the code above is
onSelectionUpdate, but what I see in the console is this:As you see, all the reported positions are always "1" even the cursor is anything but at position 1 (the start of the document).
What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions