We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ec6a17 commit feebc21Copy full SHA for feebc21
example/App.vue
@@ -109,7 +109,7 @@ export default {
109
})
110
111
},
112
- uploadImage(file) {
+ uploadImage(file, Editor, cursorLocation) {
113
var formData = new FormData();
114
formData.append('file', file)
115
formData.append('upload_preset', UPLOAD_PRESET)
@@ -124,9 +124,7 @@ export default {
124
125
.then((result) => {
126
let url = result.data.url
127
- console.log(url);
128
- // var range = this.quill.getSelection();
129
- // this.quill.insertEmbed(range.index, 'image', url, Quill.sources.API);
+ Editor.insertEmbed(cursorLocation, 'image', url);
130
131
.catch((err) => {
132
console.log(err);
0 commit comments