在vue2中配置wangEditor富文本编辑器,js代码如下
```javascript
const E = window.wangEditor;
// 绑定div上的 editor
this.editor = new E('#editor')
然后浏览器提示报错如下
TypeError: E is not a constructor
at Vue.initialEditor (systemBroadCast.html:213:31)
at Vue.mounted (systemBroadCast.html:206:18)
at invokeWithErrorHandling (vue.js:3669:63)
at callHook$1 (vue.js:3076:15)
at mountComponent (vue.js:2950:11)
at Vue.$mount (vue.js:9266:14)
at Vue.$mount (vue.js:11825:20)
at Vue._init (vue.js:4692:18)
at new Vue (vue.js:5729:12)
```