瀏覽代碼

Fix Pasting text into a card is adding a line before and after
(and multiplies by pasting more) by disabling WYSIWYG comment editor
for everyone.

Closes #2890

Lauri Ojansivu 5 年之前
父節點
當前提交
a064b8d643
共有 1 個文件被更改,包括 12 次插入4 次删除
  1. 12 4
      server/richer-editor-setting-helper.js

+ 12 - 4
server/richer-editor-setting-helper.js

@@ -1,6 +1,14 @@
 Meteor.startup(() => {
-  const RCCE = process.env.RICHER_CARD_COMMENT_EDITOR;
-  if (RCCE) {
-    Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR = RCCE !== 'false';
-  }
+
+  // Disable comment WYSIWYG editor for everyone to fix
+  // Pasting text into a card is adding a line before and after
+  // (and multiplies by pasting more)
+  // https://github.com/wekan/wekan/issues/2890
+  Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR = 'false';
+
+  //// Old original code for setting:
+  //const RCCE = process.env.RICHER_CARD_COMMENT_EDITOR;
+  //if (RCCE) {
+  //  Meteor.settings.public.RICHER_CARD_COMMENT_EDITOR = RCCE !== 'false';
+  //}
 });