mirror of
https://github.com/wekan/wekan.git
synced 2025-12-19 17:00:13 +01:00
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
This commit is contained in:
parent
10b09b2da1
commit
12ab8fac5d
1 changed files with 1 additions and 3 deletions
|
|
@ -1,7 +1,5 @@
|
||||||
Template.editor.onRendered(() => {
|
Template.editor.onRendered(() => {
|
||||||
const textareaSelector = 'textarea';
|
const textareaSelector = 'textarea';
|
||||||
const enableRicherEditor =
|
|
||||||
Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR || true;
|
|
||||||
const mentions = [
|
const mentions = [
|
||||||
// User mentions
|
// User mentions
|
||||||
{
|
{
|
||||||
|
|
@ -32,7 +30,7 @@ Template.editor.onRendered(() => {
|
||||||
autosize($textarea);
|
autosize($textarea);
|
||||||
$textarea.escapeableTextComplete(mentions);
|
$textarea.escapeableTextComplete(mentions);
|
||||||
};
|
};
|
||||||
if (enableRicherEditor) {
|
if (Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR !== false) {
|
||||||
const isSmall = Utils.isMiniScreen();
|
const isSmall = Utils.isMiniScreen();
|
||||||
const toolbar = isSmall
|
const toolbar = isSmall
|
||||||
? [
|
? [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue