I have a contenteditable div:
<div contenteditable="true" title="sometitle" id="ftext"></div>
and jQuery code:
$('#htmadd').click(function(){
$('#ftext').append($('#htmtext').val());
});
How can I append code from #htmtext to #ftext with converting in html tags and on cursor position. (or just how to get cursor position in this div)