zhanghua
2022-11-16 b6b06e8634bd718690e7112115a27d40df5ff308
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();