Removed error-prone code
authorAlexander Ebert <ebert@woltlab.com>
Wed, 4 Jan 2017 15:37:51 +0000 (16:37 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 4 Jan 2017 15:37:58 +0000 (16:37 +0100)
wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js

index 97a6c2fb60263d35a7e3a9e5c5ae75098cc85cd5..f160885802c99ac18cf0e84faaf9dc43a2f3fa0e 100644 (file)
@@ -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(/</g, '&lt;'));
-                                       }
                                });
                                
                                elBySelAll('br', div, function (br) {