Questions tagged [getselection]
198 questions
3
votes
1 answer
Refer window.getSelection().extentOffset to a certain HTML element
The following code finds out the beginning of the user's selection, if the user e.g. selects the text "text", this is "18".
I am some example text, you don't have to read it :P