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

Loading…
Cancel
Save