Browse Source

Pass the editor instance on `load` event

pull/1775/head
Artur Arseniev 7 years ago
parent
commit
a00c4c6016
  1. 4
      src/editor/view/EditorView.js

4
src/editor/view/EditorView.js

@ -2,7 +2,7 @@ const $ = Backbone.$;
module.exports = Backbone.View.extend({
initialize() {
const model = this.model;
const { model } = this;
model.view = this;
this.conf = model.config;
this.pn = model.get('Panels');
@ -10,7 +10,7 @@ module.exports = Backbone.View.extend({
this.pn.active();
this.pn.disableButtons();
model.runDefault();
setTimeout(() => model.trigger('load'), 0);
setTimeout(() => model.trigger('load', model.get('Editor')));
});
},

Loading…
Cancel
Save