From 26184ba69a551e48dbe092b5e9e968fe28e4140f Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 25 May 2004 07:46:11 +0000 Subject: [PATCH] Fix for bug 1455 from PJ and me --- lib/editor/htmlarea.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/editor/htmlarea.php b/lib/editor/htmlarea.php index 45bc7f00ff..ca8915d8c7 100644 --- a/lib/editor/htmlarea.php +++ b/lib/editor/htmlarea.php @@ -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; -- 2.39.5