参考代码
官方文档
写法
import E from 'wangeditor'
this.editor = new E(this.$refs.editor);
this.editor.customConfig.onchange = (html) => {
this.editorContent = html;
};
this.editor.create();
this.editor.$textElem.attr('contenteditable', false); //设置不可编辑
this.editor.$textContainerElem.css('height', '100px !important'); //设置高度