|
@@ -882,7 +882,7 @@ export default class CodeMirrorEditor extends AbstractEditor {
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|
|
|
const mode = this.state.isGfmMode ? 'gfm-growi' : undefined;
|
|
const mode = this.state.isGfmMode ? 'gfm-growi' : undefined;
|
|
|
- const lint = this.props?.isTextlintEnabled ? this.codemirrorLintConfig : false;
|
|
|
|
|
|
|
+ const lint = this.props.isTextlintEnabled ? this.codemirrorLintConfig : false;
|
|
|
const additionalClasses = Array.from(this.state.additionalClassSet).join(' ');
|
|
const additionalClasses = Array.from(this.state.additionalClassSet).join(' ');
|
|
|
const placeholder = this.state.isGfmMode ? 'Input with Markdown..' : 'Input with Plain Text..';
|
|
const placeholder = this.state.isGfmMode ? 'Input with Markdown..' : 'Input with Plain Text..';
|
|
|
|
|
|
|
@@ -983,8 +983,8 @@ export default class CodeMirrorEditor extends AbstractEditor {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
CodeMirrorEditor.propTypes = Object.assign({
|
|
CodeMirrorEditor.propTypes = Object.assign({
|
|
|
- editorOptions: PropTypes.object,
|
|
|
|
|
- isTextlintEnabled: PropTypes.bool,
|
|
|
|
|
|
|
+ editorOptions: PropTypes.object.isRequired,
|
|
|
|
|
+ isTextlintEnabled: PropTypes.bool.isRequired,
|
|
|
emojiStrategy: PropTypes.object,
|
|
emojiStrategy: PropTypes.object,
|
|
|
lineNumbers: PropTypes.bool,
|
|
lineNumbers: PropTypes.bool,
|
|
|
onMarkdownHelpButtonClicked: PropTypes.func,
|
|
onMarkdownHelpButtonClicked: PropTypes.func,
|