Fix Rich editor can not be disabled, regression from changes yesterday at Wekan v3.85.

Thanks to uusijani, vjrj and xet7 !

Closes #2967,
closes #104
reviewable/pr2976/r1
Lauri Ojansivu 5 years ago
parent 10b09b2da1
commit 12ab8fac5d
  1. 4
      client/components/main/editor.js

@ -1,7 +1,5 @@
Template.editor.onRendered(() => {
const textareaSelector = 'textarea';
const enableRicherEditor =
Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR || true;
const mentions = [
// User mentions
{
@ -32,7 +30,7 @@ Template.editor.onRendered(() => {
autosize($textarea);
$textarea.escapeableTextComplete(mentions);
};
if (enableRicherEditor) {
if (Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR !== false) {
const isSmall = Utils.isMiniScreen();
const toolbar = isSmall
? [

Loading…
Cancel
Save