From a5c1395c46a2682f4e9c2cb1f2b36dd6aa930151 Mon Sep 17 00:00:00 2001 From: "Sam X. Chen" Date: Wed, 24 Jul 2019 11:01:30 -0400 Subject: Add Feature: User can have richer formatted text into the comments (admin-panel fixed) --- client/components/main/editor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client/components/main/editor.js') diff --git a/client/components/main/editor.js b/client/components/main/editor.js index 9c1ad7a8..0a6db12c 100755 --- a/client/components/main/editor.js +++ b/client/components/main/editor.js @@ -1,6 +1,6 @@ Template.editor.onRendered(() => { const textareaSelector = 'textarea'; - const disableRicherEditor = Meteor.settings.public.NO_RICHER_EDITOR; + const enableRicherEditor = Meteor.settings.public.RICHER_EDITOR || true; const mentions = [ // User mentions { @@ -31,7 +31,7 @@ Template.editor.onRendered(() => { autosize($textarea); $textarea.escapeableTextComplete(mentions); }; - if (!disableRicherEditor) { + if (enableRicherEditor) { const isSmall = Utils.isMiniScreen(); const toolbar = isSmall ? [ -- cgit v1.2.3-1-g7c22