vue3 引用vue-ueditor-wrap中百度编辑器ueditor实例,字数统计

        
   ready (editorInstance) {
      this.editorInstance = editorInstance
    }

拿到this.editorInstance后可以调用所有实例的api了

参考vue-ueditor-wrap的文档vue-ueditor-wrap - Vue + UEditor + v-model双向绑定Vue + UEditor + v-model双向绑定https://hc199421.gitee.io/vue-ueditor-wrap/#/api

vue3 引用vue-ueditor-wrap中百度编辑器ueditor实例,字数统计_第1张图片

 

纯文本的字数统计就是this.editorInstance.getContentTxt().length

完。 

你可能感兴趣的:(ueditor,随记备忘,vue.js,编辑器)