From a064b8d6438fff5a83fb03c463fe03a69b8342d2 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Fri, 20 Mar 2020 13:52:27 +0200 Subject: Fix Pasting text into a card is adding a line before and after (and multiplies by pasting more) by disabling WYSIWYG comment editor for everyone. Closes #2890 --- server/richer-editor-setting-helper.js | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/server/richer-editor-setting-helper.js b/server/richer-editor-setting-helper.js index 967d034e..4a3d56ab 100644 --- a/server/richer-editor-setting-helper.js +++ b/server/richer-editor-setting-helper.js @@ -1,6 +1,14 @@ Meteor.startup(() => { - const RCCE = process.env.RICHER_CARD_COMMENT_EDITOR; - if (RCCE) { - Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR = RCCE !== 'false'; - } + + // Disable comment WYSIWYG editor for everyone to fix + // Pasting text into a card is adding a line before and after + // (and multiplies by pasting more) + // https://github.com/wekan/wekan/issues/2890 + Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR = 'false'; + + //// Old original code for setting: + //const RCCE = process.env.RICHER_CARD_COMMENT_EDITOR; + //if (RCCE) { + // Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR = RCCE !== 'false'; + //} }); -- cgit v1.2.3-1-g7c22