From afd45546f9cc5b7ecec13454f8eb8522c61323ad Mon Sep 17 00:00:00 2001 From: Arthur Almeida Date: Wed, 4 Oct 2017 21:52:32 -0300 Subject: [PATCH] reverted to previous version --- src/grapesjs/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/grapesjs/index.js b/src/grapesjs/index.js index ce4e4800a..8fb20022e 100644 --- a/src/grapesjs/index.js +++ b/src/grapesjs/index.js @@ -50,11 +50,6 @@ module.exports = (() => { config.el = els instanceof window.HTMLElement ? els : document.querySelector(els); const editor = new Editor(config).init(); - // Execute `onLoad` on modules once all plugins are initialized. - // A plugin might have extended/added some custom type so this - // is a good point to load stuff like components, css rules, etc. - editor.getModel().loadOnStart(); - // Load plugins config.plugins.forEach(pluginId => { const plugin = plugins.get(pluginId); @@ -66,6 +61,11 @@ module.exports = (() => { } }); + // Execute `onLoad` on modules once all plugins are initialized. + // A plugin might have extended/added some custom type so this + // is a good point to load stuff like components, css rules, etc. + editor.getModel().loadOnStart(); + config.autorender && editor.render(); editors.push(editor);