luobisheng
2022-11-16 13e9ddabf4ba3a89aa2a93fe8d3b35c8604c6813
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();