Skip to content
Snippets Groups Projects
Commit 7c6f82e5 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fix for insertAtCarret in IE #730

darcs-hash:20060304132021-7ad00-9a66209ce9d4e85cee8ba50b1ea6f623b5bea768.gz
parent 56146e0d
No related branches found
No related tags found
No related merge requests found
......@@ -292,11 +292,7 @@ function insertAtCarret(edid,value){
//IE support
if (document.selection) {
field.focus();
if(opener == null){
sel = document.selection.createRange();
}else{
sel = opener.document.selection.createRange();
}
sel = document.selection.createRange();
sel.text = value;
//MOZILLA/NETSCAPE support
}else if (field.selectionStart || field.selectionStart == '0') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment