From 9873b92fde5d685588213b8b81fe1543abc2b978 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Fri, 3 Jul 2015 12:57:40 +0200 Subject: [PATCH] Prevent empty anchor being spawned when editing an image --- .../install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js index 9cf41559cf..b34c14fc09 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js +++ b/wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js @@ -658,7 +658,7 @@ RedactorPlugins.wmonkeypatch = function() { anchor.attr('href', link); } } - else { + else if (link !== '') { anchor = document.createElement('a'); anchor.href = link; image[0].parentNode.insertBefore(anchor, image[0]); -- 2.20.1