'wangeditor'富文本编辑器的使用

<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()
  }
发布了39 篇原创文章 · 获赞 47 · 访问量 4886

猜你喜欢

转载自blog.csdn.net/qq_42520112/article/details/102883390