Skip to content

Commit 4d0a99f

Browse files
committed
editor fix
1 parent d04b988 commit 4d0a99f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/editor/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default class QuillEditorComponent extends React.Component<IEditor> {
4747
theme: 'snow',
4848
}
4949

50-
$editor: any = null
50+
$editor: HTMLDivElement = null
5151

5252
componentDidMount() {
5353
const { onChange } = this.props
@@ -81,7 +81,7 @@ export default class QuillEditorComponent extends React.Component<IEditor> {
8181
this.changeEditorText()
8282

8383
return <div className="editor-wrap">
84-
<div style={{minHeight: '600px'}} ref={this.$editor}></div>
84+
<div style={{minHeight: '600px'}} ref={el => this.$editor = el}></div>
8585
{disabled ? <div className="editor-mask"></div> : ''}
8686
</div>
8787

0 commit comments

Comments
 (0)