views:

2326

answers:

3

Hello!

I've successfully done this for IE7. FF, no dice.

any ideas? Thanks!

A: 
var range= window.getSelection().getRangeAt(0);
alert('Current position: '+range.startOffset+' inside '+range.startContainer);
range.setStart(newParent, textOffset);
range.setEnd(newParent, textOffset);
bobince
A: 

Hello,

I am also trying to let it work as well in ie as in ff, still for both i haven't get it to work yet. Could you post the solutions?

A: 

Ok, I've managed to get caret position in contentEditable div in FF, but not in IE.. Plz post solution for IE

Viktor Gustafsson