I am using popular Rangy library inside contenteditable DIV. My code is pretty simple:
var saved_selection = false;
$('#contenteditable').bind('keypress mouseup', function(e){
$(this).find('.rangySelectionBoundary').remove();
saved_selection = rangy.saveSelection();
});
Now this works pretty good in Chrome and FF. However, in Opera it behaves very strangely, because it doesn't allow to insert any characters in contenteditable and it rather looses focus, or at least it seems so.
I have prepared jsFiddle for testing. In Opera, it's not possible to enter any chars in editable DIV: http://jsfiddle.net/twST6/1/
Anybody can explain and solve my problem how to make this code work in Opera ?
Thanks in advance for any help.