Browse Source

apply default config

kaori 4 years ago
parent
commit
81f66fc397
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/app/src/components/PageEditor/CodeMirrorEditor.jsx

+ 1 - 1
packages/app/src/components/PageEditor/CodeMirrorEditor.jsx

@@ -232,7 +232,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
 
 
   initTextlintSettings() {
   initTextlintSettings() {
     this.textlintValidator = createValidator(this.textlintConfig);
     this.textlintValidator = createValidator(this.textlintConfig);
-    this.codemirrorLintConfig = this.props.isTextlintEnabled ? { getAnnotations: this.textlintValidator, async: true } : undefined;
+    this.codemirrorLintConfig = { getAnnotations: this.textlintValidator, async: true };
   }
   }
 
 
   getCodeMirror() {
   getCodeMirror() {