From: Alexander Ebert Date: Wed, 4 Jan 2017 15:37:51 +0000 (+0100) Subject: Removed error-prone code X-Git-Tag: 3.0.0~57 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fc236f7e5d7ab12b4042f5b30570db3e985058fd;p=GitHub%2FWoltLab%2FWCF.git Removed error-prone code --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js index 97a6c2fb60..f160885802 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js @@ -168,12 +168,6 @@ $.Redactor.prototype.WoltLabClean = function() { elBySelAll('img', div, function (img) { img.removeAttribute('style'); - - if (img.hasAttribute('alt')) { - // Any smiley with an code that has `<` followed by - // a letter will cause the editor to fail. - img.setAttribute('alt', img.getAttribute('alt').replace(/