Issue #872💬 AnsweredOpened February 15, 2018by panagulis720 reactions

Know when the editor is Initialized

快速解答by cjpollard

You can listen for the event with:

Read full answer below ↓

Question

Is there a fallback on var editor = grapesjs.init({ }) ? I need to know when the editor is loaded and initialized

Answers (3)

cjpollardFebruary 15, 2018

You can listen for the event with:

editor.on('load', fn);
ryandebaFebruary 15, 2018

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/

panagulis72February 15, 2018

Thank you very very much!

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.