feat: 增加默认跳转

This commit is contained in:
秋水浮尘
2023-10-15 00:12:03 +08:00
parent a387a61d02
commit 7ba8d52bfe
7 changed files with 97 additions and 81 deletions

View File

@@ -50,6 +50,7 @@ export default class KindEditor extends Component {
componentDidMount() {
const elemMenu = this.refs.editorElemMenu;
const elemBody = this.refs.editorElemBody;
if (this.editor) return
this.editor = new Editor(elemMenu, elemBody);
// // 使用 onchange 函数监听内容的变化,并实时更新到 state 中
this.editor.config.onchange = (html) => {