src/components/edit/index.vue
@@ -19,12 +19,12 @@ '#4b9bb7', '#09152f' ] this.editor.config.onchange =(html)=>{ this.editor.config.onchange = (html)=>{ // 第二步,监控变化,同步更新到 textarea this.$emit('getMyBody',html); this.$emit('getMyBody', html); } this.editor.create(); this.editor.create(); }, beforeDestroy() { this.editor.destroy();