<div ref="editor"></div>
import E from 'wangeditor'
data () {
return {
editorContent: ''
}
}
mounted () {
var editor = new E(this.$refs.editor)
editor.customConfig.onchange = (html) => {
this.editorContent = html
}
editor.customConfig.uploadImgShowBase64 = true
editor.customConfig.showLinkImg = false
editor.create()
}