diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-03-20 13:52:27 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2020-03-20 13:52:27 +0200 |
commit | a064b8d6438fff5a83fb03c463fe03a69b8342d2 (patch) | |
tree | 222eecc396ca00dfc6bbbdf6fcac34141639b1bb | |
parent | 556621e60ead686af60505f0aa6234d039b0f361 (diff) | |
download | wekan-a064b8d6438fff5a83fb03c463fe03a69b8342d2.tar.gz wekan-a064b8d6438fff5a83fb03c463fe03a69b8342d2.tar.bz2 wekan-a064b8d6438fff5a83fb03c463fe03a69b8342d2.zip |
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
-rw-r--r-- | server/richer-editor-setting-helper.js | 16 |
1 files 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'; + //} }); |