fix for insertAtCarret in IE #730
darcs-hash:20060304132021-7ad00-9a66209ce9d4e85cee8ba50b1ea6f623b5bea768.gz
This commit is contained in:
parent
56146e0d4b
commit
7c6f82e59d
|
@ -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') {
|
||||
|
|
Loading…
Reference in New Issue