npm i wangeditor --save
页面单独引入
import E from "wangeditor";



data(){
  return{
    editor:null,
  }
}

mounted() {
  const editor = new E('#div1');
  // 配置 onchange 回调函数,将数据同步到 vue 中
  editor.config.onchange = (newHtml) => {
      this.ruleForm.activity_content = newHtml;
  }
  editor.create();
  this.editor = editor;
},