From a8b1247ce3b34a0bde149d47fe45403e7e071850 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 28 Dec 2016 18:06:19 +0100 Subject: [PATCH] Fixed work-around for smiley codes --- .../files/js/3rdParty/redactor2/plugins/WoltLabClean.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js index 9736d864c1..97a6c2fb60 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js @@ -170,10 +170,9 @@ $.Redactor.prototype.WoltLabClean = function() { img.removeAttribute('style'); if (img.hasAttribute('alt')) { - // The editor trips over `<`, causing the DOM to be seriously - // messed up. Until this is resolved, we're simply dropping it, - // at least for smilies it is later restored. - img.setAttribute('alt', img.getAttribute('alt').replace(/