vue-quill-editor get cannot get cursor position
let quill = this.$refs.myQuillEditor.quill
/ / if the upload is successful
if (rets = "lyck" & & rets! = = null) {
/ if the upload is successful
/ / get the location of the cursor
let length = quill.getSelection () .index
/ / insert the image address returned by the server res.url
quill.insertEmbed (length," image", result)
/ / adjust the cursor to the last
quill.setSelection (length + 1)
let quill = this.$refs.myQuillEditor.quill the value of quill that failed to get an instance of a rich text component is undefined