diff --git a/lib/scripts/edit.js b/lib/scripts/edit.js index 22d040610d661a4a97e973609aecdc8d02c8ef02..d39835526597be531b903077203bad749db87590 100644 --- a/lib/scripts/edit.js +++ b/lib/scripts/edit.js @@ -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') {