Skip to content

Commit

Permalink
fix: 🐛 emit init event when editor instantiated
Browse files Browse the repository at this point in the history
  • Loading branch information
Leecason committed Dec 18, 2019
1 parent 410b205 commit 41cf7d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/ElTiptap.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ import MenuBar from './MenuBar/index.vue';
import MenuBubble from './MenuBubble/index.vue';
const COMMON_EMIT_EVENTS = [
'init',
'transaction',
'focus',
'blur',
Expand Down Expand Up @@ -141,6 +140,10 @@ export default {
...eventOptions,
onUpdate: this.onUpdate.bind(this),
});
this.$emit('onInit', {
editor: this.editor,
});
},
beforeDestroy () {
Expand Down

0 comments on commit 41cf7d8

Please sign in to comment.