diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-03-23 22:23:31 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2020-03-23 22:23:31 +0200 |
commit | 81635d92175d7f16797a522c84e25dd11377b68f (patch) | |
tree | ec216c9709aec2648c7a6ac71a3711f2d41d34db /server | |
parent | e8f89a8c4c8e9d3532524f44fee4542772c03acc (diff) | |
download | wekan-81635d92175d7f16797a522c84e25dd11377b68f.tar.gz wekan-81635d92175d7f16797a522c84e25dd11377b68f.tar.bz2 wekan-81635d92175d7f16797a522c84e25dd11377b68f.zip |
Revert: 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.
Thanks to xet7.
TODO later: Fix wysiwyg editor paste bug.
Opens #2890
Diffstat (limited to 'server')
-rw-r--r-- | server/richer-editor-setting-helper.js | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/server/richer-editor-setting-helper.js b/server/richer-editor-setting-helper.js index 2f06a547..967d034e 100644 --- a/server/richer-editor-setting-helper.js +++ b/server/richer-editor-setting-helper.js @@ -1,14 +1,6 @@ Meteor.startup(() => { - // 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 - const RCCE = 'false'; - Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR = RCCE; - - //// Old original code for setting: - //const RCCE = process.env.RICHER_CARD_COMMENT_EDITOR; - //if (RCCE) { - // Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR = RCCE !== 'false'; - //} + const RCCE = process.env.RICHER_CARD_COMMENT_EDITOR; + if (RCCE) { + Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR = RCCE !== 'false'; + } }); |