fix for insertAtCarret in IE #730

darcs-hash:20060304132021-7ad00-9a66209ce9d4e85cee8ba50b1ea6f623b5bea768.gz
This commit is contained in:
Andreas Gohr 2006-03-04 14:20:21 +01:00
parent 56146e0d4b
commit 7c6f82e59d
1 changed files with 1 additions and 5 deletions

View File

@ -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') {