From a64b66ddcf80ae79316c846c1fbcb61067911b2e Mon Sep 17 00:00:00 2001 From: mattc-catalyst Date: Mon, 6 Aug 2007 04:38:59 +0000 Subject: [PATCH] MDL-7043: fix insert link functionality to allow linking to images again Author: Matt Clarkson --- lib/editor/htmlarea/htmlarea.php | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/lib/editor/htmlarea/htmlarea.php b/lib/editor/htmlarea/htmlarea.php index f3bbf8b908..93c39e0b0d 100644 --- a/lib/editor/htmlarea/htmlarea.php +++ b/lib/editor/htmlarea/htmlarea.php @@ -1542,21 +1542,23 @@ HTMLArea.prototype._createLink = function(link) { } var a = link; if (!a) { - // Since startContainer check does not work - // very well in Moz use just insertHTML. - var sel = editor._getSelection(); - var range = editor._createRange(sel); - var strLink = '