I have a contenteditable element like this:
<p id="editor" contenteditable="true">Ok I am an element.</p>
How do I set the cursor in the element to wherever the mouse pointer is?
None of my attempted methods work:
$("#editor").click();
$("#editor").focus();