<QuillEditorCom> :content=content @onEditorChange='onEditorChange' ref='myQuillEditor' </QuillEditorCom>
onEditorChange(val){ // 使编辑器不可用后再可用 this.$refs.myQuillEditor.quill.enable(false) setTimeout(()=>{ this.$refs.myQuillEditor.quill.enable(true) // 要求焦点在编辑器上 this.$refs.myQuillEditor.quill.getSelection(focus=true) }) }
Quill官方中文文档地址:Quill
标签:文本编辑,QuillEditor,refs,myQuillEditor,光标,onEditorChange,quill From: https://www.cnblogs.com/zshibo/p/17015534.html