We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handleFileSuccess (res, file) { let fileNameLength = file.name.length let quill = this.$refs.myQuillEditor.quill let length = quill.getSelection().index; quill.insertText(length, ''+file.name+'', "silent") quill.insertEmbed(length, 'link', {href:res, innerText:file.name}, "api") quill.setSelection(length + fileNameLength) }
handleImgSuccess(res){ let quill = this.$refs.myQuillEditor.quill if (res) { let length = quill.getSelection().index; quill.insertEmbed(length, 'image', res) quill.setSelection(length + 1) } else { this.$message.error('图片插入失败') } }
quill.insertEmbed(length, 'image', res) Take effect quill.insertEmbed(length, 'link', {href:res, innerText:file.name}, "api") invalid
Why?
The text was updated successfully, but these errors were encountered:
you need to add lint blot
Sorry, something went wrong.
No branches or pull requests
handleFileSuccess (res, file) {
let fileNameLength = file.name.length
let quill = this.$refs.myQuillEditor.quill
let length = quill.getSelection().index;
quill.insertText(length, ''+file.name+'', "silent")
quill.insertEmbed(length, 'link', {href:res, innerText:file.name}, "api")
quill.setSelection(length + fileNameLength)
}
handleImgSuccess(res){
let quill = this.$refs.myQuillEditor.quill
if (res) {
let length = quill.getSelection().index;
quill.insertEmbed(length, 'image', res)
quill.setSelection(length + 1)
} else {
this.$message.error('图片插入失败')
}
}
quill.insertEmbed(length, 'image', res) Take effect
quill.insertEmbed(length, 'link', {href:res, innerText:file.name}, "api") invalid
Why?
The text was updated successfully, but these errors were encountered: