Know when the editor is Initialized
Question
Is there a fallback on var editor = grapesjs.init({ }) ? I need to know when the editor is loaded and initialized
Answers (3)
You can listen for the event with:
editor.on('load', fn);
Hi @panagulis72,
As @cjpollard pointed out, the load event is what you need to listen for. Here's a live example: https://jsfiddle.net/gkcgm6th/5/
Thank you very very much!
Related Questions and Answers
Continue research with similar issue discussions.
Issue #519
No Blocks by default
Using this code I get an editor but there are no blocks. I also do not get the icons for the screen size but other icons are there. As you...
Issue #507
uploadFile being called twice on drop file?
I have an editor initialized as so: If I add an image to the canvas and try to upload a new image by dragging it into the drop area in the...
Issue #620
Remote Storage
I'm trying to use the remote storage but no success, with the resolved issues I manage to adjust eveything as it best, but editor do not re...
Issue #998
[BUG] Asset Manager sends empty request when uploading image
Description: GrapesJS editor is initialized in an editor.html file as follows: localhost:9001 is a local IIS server running PHP5. The conte...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.