I’m trying to find a position in a string to append an <img> tag to on drop using jQuery.
What I’m planning on doing is on hover convert the HTML of a paragraph to string, or maybe a text area.
Is there a way to append HTML to the cursor’s position?
Use window.getSelection() and Range :
http://www.quirksmode.org/dom/range_intro.html
http://help.dottoro.com/ljvhnwsk.php