From fc236f7e5d7ab12b4042f5b30570db3e985058fd Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 4 Jan 2017 16:37:51 +0100 Subject: [PATCH] Removed error-prone code --- .../files/js/3rdParty/redactor2/plugins/WoltLabClean.js | 6 ------ 1 file changed, 6 deletions(-) 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(/