diff options
author | Lauri Ojansivu <x@xet7.org> | 2020-03-24 11:04:04 +0200 |
---|---|---|
committer | Lauri Ojansivu <x@xet7.org> | 2020-03-24 11:04:04 +0200 |
commit | 12ab8fac5db9c5ac8069d0ca2bca340d6004a25b (patch) | |
tree | 577882a8592d769caf51930905ddeb448f82ba25 | |
parent | 10b09b2da1cadc64b3080188e82ed289402e747e (diff) | |
download | wekan-12ab8fac5db9c5ac8069d0ca2bca340d6004a25b.tar.gz wekan-12ab8fac5db9c5ac8069d0ca2bca340d6004a25b.tar.bz2 wekan-12ab8fac5db9c5ac8069d0ca2bca340d6004a25b.zip |
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
-rwxr-xr-x | client/components/main/editor.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/client/components/main/editor.js b/client/components/main/editor.js index 97a96b8e..18b823a2 100755 --- a/client/components/main/editor.js +++ b/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 ? [ |