From 922d9658061d04eff09beb87c181151fc445d977 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 8 Sep 2017 17:30:25 +0200 Subject: [PATCH] Fixed link pasting Fixes #2417 --- .../files/js/3rdParty/redactor2/plugins/WoltLabClean.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js index 42695ddde3..e8b9be81d0 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js @@ -360,7 +360,7 @@ $.Redactor.prototype.WoltLabClean = function() { if (data.links && this.opts.pasteLinks) { elBySelAll('a', div, function(link) { if (link.href) { - link.outerHTML = '##%a href="' + link.href + '"%##' + link.innerHTML + '##%/a%##'; + link.outerHTML = '##%%a href="' + link.href + '"%%##' + link.innerHTML + '##%%/a%##'; } }); @@ -372,7 +372,7 @@ $.Redactor.prototype.WoltLabClean = function() { if (data.images && this.opts.pasteImages) { elBySelAll('img', div, function(image) { if (image.src) { - var tmp = '##%img src="' + image.src + '"'; + var tmp = '##%%img src="' + image.src + '"'; var attr; for (var j = 0, length = image.attributes.length; j < length; j++) { attr = image.attributes.item(j); @@ -381,7 +381,7 @@ $.Redactor.prototype.WoltLabClean = function() { } } - image.outerHTML = tmp + '%##'; + image.outerHTML = tmp + '%%##'; } }); -- 2.20.1