I have a contentEditable
div and a list of emojies
images. What I am trying to do is that when a user click on an image, the image tag should be inserted at the cursor position.
I tired to do this but this code only insert the image at the end of the div which is not the case for me
$("#editable").append($(this).id); // $(this) is the image tag
How can I fix my problem? jsfiddle : http://jsfiddle.net/7VNTn/