From: Alexander Ebert Date: Thu, 15 Aug 2019 09:58:15 +0000 (+0200) Subject: Redundant styles: Purge the inner style rather than the outer one X-Git-Tag: 5.2.0_Alpha_4~8^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e91de1da82640d2e3ec48c870011a6d874067ebf;p=GitHub%2FWoltLab%2FWCF.git Redundant styles: Purge the inner style rather than the outer one --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js index 6991a7a806..062f165b2b 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js @@ -639,9 +639,9 @@ $.Redactor.prototype.WoltLabClean = function() { 'u' ]; elBySelAll(plainTags.join(','), this.$editor[0], function(element) { - if (elBySel(element.nodeName, element) !== null) { - removeElements.push(element); - } + elBySelAll(element.nodeName, element, function(child) { + removeElements.push(child); + }); }); // Search for span[style] that contain styles that actually do nothing, because their set style