I can't seem to find this anywhere.
I'm using a div with contenteditable=true, and I need to know where the caret is for operations like splitting the html contents of that div where the caret is. Ultimately, if a piece of text is selected, I'll want to split that html content on the selection start / end.
jCaret only seems to work for textareas. Is this possible in a div?
thx