richer-editor-setting-helper.js 511 B

1234567891011121314
  1. Meteor.startup(() => {
  2. // Disable comment WYSIWYG editor for everyone to fix
  3. // Pasting text into a card is adding a line before and after
  4. // (and multiplies by pasting more)
  5. // https://github.com/wekan/wekan/issues/2890
  6. const RCCE = 'false';
  7. Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR = RCCE;
  8. //// Old original code for setting:
  9. //const RCCE = process.env.RICHER_CARD_COMMENT_EDITOR;
  10. //if (RCCE) {
  11. // Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR = RCCE !== 'false';
  12. //}
  13. });