genaweb
Programmer
- Oct 15, 2008
- 2
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;
and try to debug the start value by
alert(start.nodeValue);
and it shows the text that is before selection. but not selected text.
i debugged the selection by alert and it contents correctly selected text.
In Opera start variable contents correctly selected text.
why does FF work like this?
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;
and try to debug the start value by
alert(start.nodeValue);
and it shows the text that is before selection. but not selected text.
i debugged the selection by alert and it contents correctly selected text.
In Opera start variable contents correctly selected text.
why does FF work like this?