Skip to content

Commit

Permalink
fix: Fixes emitted names. Closes #152.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidroyer committed Aug 22, 2019
1 parent 8b7763b commit 6ef96c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/VueEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default {
operations.map(operation => {
if (operation.insert && operation.insert.hasOwnProperty("image")) {
const { image } = operation.insert;
this.$emit("imageRemoved", image);
this.$emit("image-removed", image);
}
});
},
Expand All @@ -210,7 +210,7 @@ export default {
let Editor = this.quill;
let range = Editor.getSelection();
let cursorLocation = range.index;
this.$emit("imageAdded", file, Editor, cursorLocation, resetUploader);
this.$emit("image-added", file, Editor, cursorLocation, resetUploader);
}
}
};
Expand Down

0 comments on commit 6ef96c2

Please sign in to comment.