Is there a way to get text from contenteditable div
from beginning to cursor position.
For example:
<div id="editableDiv" contenteditable="true">
the quick brown fox jumps over a lazy dog.
</div>
Assumption 1: cursor blinking after the word quick. The query to the function must return the quick
Assumption 2: cursor blinking at the end of the sentence. The query to the function must return the quick brown fox jumps over a lazy dog.
--->
stackoverflow.com/questions/17613431/… – Jai