summaryrefslogtreecommitdiffstats
path: root/client/components/main
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2020-03-24 11:04:04 +0200
committerLauri Ojansivu <x@xet7.org>2020-03-24 11:04:04 +0200
commit12ab8fac5db9c5ac8069d0ca2bca340d6004a25b (patch)
tree577882a8592d769caf51930905ddeb448f82ba25 /client/components/main
parent10b09b2da1cadc64b3080188e82ed289402e747e (diff)
downloadwekan-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
Diffstat (limited to 'client/components/main')
-rwxr-xr-xclient/components/main/editor.js4
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
? [