From: Alexander Ebert Date: Thu, 10 Jun 2021 16:22:31 +0000 (+0200) Subject: Incorrect removal of formatting when pasting as plain text X-Git-Tag: 5.3.8~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fbdd4a448ce6875ef4e1d83bf423285e2841f670;p=GitHub%2FWoltLab%2FWCF.git Incorrect removal of formatting when pasting as plain text Fixes #4276 --- diff --git a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js index 930f267434..f39317056d 100644 --- a/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js +++ b/wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js @@ -267,7 +267,7 @@ $.Redactor.prototype.WoltLabClean = function() { var fontSize = span.style.getPropertyValue('font-size'); var activeStyles = (color ? 1 : 0) + (fontFamily ? 1 : 0) + (fontSize ? 1 : 0); - while (activeStyles > 1) { + while (activeStyles > 0) { if (this.opts.pastePlainText) { span.style.removeProperty('color'); span.style.removeProperty('font-family');