I have a div which has a contenteditable="true" attribute. Inside it the user can type randome text. Also, through some process i create html5 canvas and append to the div.
So, a sample view of my div would be
<div contenteditable="true">
Some free text type by the user <canvas ...></canvas> some more text... etc etc...
</div>
So, my problem is, when the user has the cursor at the end of the text (div), and starts erasing with the Backspace Key, on IE it all works fine. But on chrome, the text at the end will start being eradse, then the cursor will jump the 2nd canvas to erase the beginning text and at the end once all free text are erased, it will erase the canvas.
So Weird, help is much appreciated.
Thanks,