From 9713348b1a907a2ab75132ee30332673644a951e Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 02 十一月 2022 14:32:09 +0800 Subject: [PATCH] 2022-11-02 --- src/templates/zshare/codemirror/index.jsx | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/templates/zshare/codemirror/index.jsx b/src/templates/zshare/codemirror/index.jsx index 853e055..24f6872 100644 --- a/src/templates/zshare/codemirror/index.jsx +++ b/src/templates/zshare/codemirror/index.jsx @@ -201,7 +201,7 @@ className="code-mirror-area" value={defaultVal} options={options} - ref={(ref) => { this.editor = ref }} + editorDidMount={editor => { this.editor = editor }} onChange={(editor, data, value) => { this.setState({value}) this.props.onChange(value) -- Gitblit v1.8.0