]> git.mjollnir.org Git - moodle.git/commitdiff
Fix for bug 1455 from PJ and me
authormoodler <moodler>
Tue, 25 May 2004 07:46:11 +0000 (07:46 +0000)
committermoodler <moodler>
Tue, 25 May 2004 07:46:11 +0000 (07:46 +0000)
lib/editor/htmlarea.php

index 45bc7f00ff56b1c4464614525317372b645379ac..ca8915d8c73a019e24ddff55325f57ee5623334b 100644 (file)
@@ -1437,11 +1437,11 @@ HTMLArea.prototype._createLink = function(link) {
             a = editor.getParentElement();
             var sel = editor._getSelection();
             var range = editor._createRange(sel);
-            if (!HTMLArea.is_ie) {
-                a = range.startContainer;
-                if (!/^a$/i.test(a.tagName))
-                    a = a.nextSibling;
-            }
+        //    if (!HTMLArea.is_ie) {           /// Removed by PJ and Martin, Moodle bug #1455
+        //        a = range.startContainer;
+        //        if (!/^a$/i.test(a.tagName))
+        //            a = a.nextSibling;
+        //    }
         } else a.href = param.f_href.trim();
         if (!/^a$/i.test(a.tagName))
             return false;