最近遇到个需求,需要在页面中引入富文本编辑器。最后选择使用wangEditor,直接引入即可使用,因此记录一下。 引入方式如下: import E from 'wangeditor' const editor = new E('#div1') editor.create() 更多配置可以参考官方使用文档 更多内容可以去官网