my real problem is in difference of working this code in Opera and FF.
Opera shows me startOffset as 0, but FF shows it as count of symbols BEFORE SELECTION... And so startContainer contents symbols befor selection. But Opera works correct...
sorry for my english if it is incorrect, because i'm from russia...
thats my problem:
i get the Selection from iframe (designmode is in ON) by:
var selection = editor_window.getSelection();
then i get Range by
range = selection.getRangeAt(0);
after that i write
start = range.startContainer...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.