From e91de1da82640d2e3ec48c870011a6d874067ebf Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 15 Aug 2019 11:58:15 +0200 Subject: [PATCH] Redundant styles: Purge the inner style rather than the outer one --- .../files/js/3rdParty/redactor2/plugins/WoltLabClean.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.20.1