From fbdd4a448ce6875ef4e1d83bf423285e2841f670 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 10 Jun 2021 18:22:31 +0200 Subject: [PATCH] Incorrect removal of formatting when pasting as plain text Fixes #4276 --- .../install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); -- 2.20.1