|
|
@@ -113,6 +113,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
|
|
|
isSimpleCheatsheetShown: this.props.isGfmMode && this.props.value.length === 0,
|
|
|
isCheatsheetModalShown: false,
|
|
|
additionalClassSet: new Set(),
|
|
|
+ isTextlintEnabled: false,
|
|
|
};
|
|
|
|
|
|
this.gridEditModal = React.createRef();
|
|
|
@@ -159,7 +160,9 @@ export default class CodeMirrorEditor extends AbstractEditor {
|
|
|
: { dicPath: 'https://cdn.jsdelivr.net/npm/kuromoji@0.1.2/dict' };
|
|
|
|
|
|
// TODO: Get configs from db
|
|
|
- this.isTextlintEnabled = true;
|
|
|
+ // this.setState({ isTextlintEnabled: this.props.isTextlintEnabled });
|
|
|
+ this.state.isTextlintEnabled = this.props.isTextlintEnabled;
|
|
|
+ // this.isTextlintEnabled = this.props.isTextlintEnabled;
|
|
|
|
|
|
this.textlintConfig = [
|
|
|
{ name: 'no-unmatched-pair' },
|