Skip to content

Commit 74c0ec2

Browse files
fixed the issue of initialize event
1 parent bf2950d commit 74c0ec2

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/vue-froala.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,15 @@ export default (Vue, Options = {}) => {
9090

9191
this.currentConfig = this.clone(this.config || this.defaultConfig);
9292

93-
this._editor = new FroalaEditor(this.$el, this.currentConfig, () => {
94-
this.initListeners();
95-
this.editorInitialized = true;
96-
});
97-
9893
this.setContent(true);
9994

10095
// Bind editor events.
10196
this.registerEvents();
97+
this.initListeners();
98+
99+
this._editor = new FroalaEditor(this.$el, this.currentConfig)
100+
101+
this.editorInitialized = true;
102102

103103
},
104104

0 commit comments

Comments
 (0)