Przeglądaj źródła

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
Lauri Ojansivu 5 lat temu
rodzic
commit
12ab8fac5d
1 zmienionych plików z 1 dodań i 3 usunięć
  1. 1 3
      client/components/main/editor.js

+ 1 - 3
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
       ? [