Incorrect removal of formatting when pasting as plain text
authorAlexander Ebert <ebert@woltlab.com>
Thu, 10 Jun 2021 16:22:31 +0000 (18:22 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 10 Jun 2021 16:22:31 +0000 (18:22 +0200)
Fixes #4276

wcfsetup/install/files/js/3rdParty/redactor2/plugins/WoltLabClean.js

index 930f267434798f97b42a7ccdd6198fa1d4ec90af..f39317056d7e9bab08d3b5a7ec82daa4ac8fef51 100644 (file)
@@ -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');