Skip to content

Commit 6ef96c2

Browse files
committed
fix: Fixes emitted names. Closes davidroyer#152.
1 parent 8b7763b commit 6ef96c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/VueEditor.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export default {
184184
operations.map(operation => {
185185
if (operation.insert && operation.insert.hasOwnProperty("image")) {
186186
const { image } = operation.insert;
187-
this.$emit("imageRemoved", image);
187+
this.$emit("image-removed", image);
188188
}
189189
});
190190
},
@@ -210,7 +210,7 @@ export default {
210210
let Editor = this.quill;
211211
let range = Editor.getSelection();
212212
let cursorLocation = range.index;
213-
this.$emit("imageAdded", file, Editor, cursorLocation, resetUploader);
213+
this.$emit("image-added", file, Editor, cursorLocation, resetUploader);
214214
}
215215
}
216216
};

0 commit comments

Comments
 (0)