diff --git a/src/editor/index.tsx b/src/editor/index.tsx index a3fb54c..344f4e5 100644 --- a/src/editor/index.tsx +++ b/src/editor/index.tsx @@ -144,7 +144,8 @@ class Editor extends React.Component { } componentDidMount() { - this.renderHTML(this.props.value || this.props.defaultValue || ''); + const { text } = this.state; + this.renderHTML(text); emitter.on(emitter.EVENT_LANG_CHANGE, this.handleLocaleUpdate); // init i18n i18n.setUp();