Fix for bug 1455 from PJ and me

This commit is contained in:
moodler
2004-05-25 07:46:11 +00:00
parent 0d07726e6e
commit 26184ba69a
+5 -5
View 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;