I have a contenteditable div:
<div class="r_review_content" contenteditable="true"
unselectable="false" style="padding:10px; vertical-align:bottom" ></div>
then I have different smiley images. Now what I am trying to achieve is that when I click on smiley image it should get added at cursor location in above div. This is what I have achieved so far:
$(".smiley_icon img").click(function(){
var img_smiley =$(this).clone().css("width","18px");
$('.r_review_content').append(img_smiley);
return false;
});
Any help will be appreciated.