From: Alexander Ebert Date: Wed, 28 Dec 2016 17:06:19 +0000 (+0100) Subject: Fixed work-around for smiley codes X-Git-Tag: 3.0.0_RC_3~20 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a8b1247ce3b34a0bde149d47fe45403e7e071850;p=GitHub%2FWoltLab%2FWCF.git Fixed work-around for smiley codes --- 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(/