From 7c6f82e59d762d68d99d1a88f449d1035ffa5f76 Mon Sep 17 00:00:00 2001 From: Andreas Gohr <andi@splitbrain.org> Date: Sat, 4 Mar 2006 14:20:21 +0100 Subject: [PATCH] fix for insertAtCarret in IE #730 darcs-hash:20060304132021-7ad00-9a66209ce9d4e85cee8ba50b1ea6f623b5bea768.gz --- lib/scripts/edit.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/scripts/edit.js b/lib/scripts/edit.js index 22d040610..d39835526 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') { -- GitLab