summaryrefslogtreecommitdiffstats
path: root/server/richer-editor-setting-helper.js
blob: 2f06a5476fe411065beaf243c4fdeb6185befc98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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';
  //}
});