question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Trigger event on editor load

See original GitHub issue

It would be great if there was a way to trigger an event when the editor has loaded. I tried

var editor = grapesjs.init({
	container : '#gjs',
	on: {
		event: 'load',
		callback: myFunc
	}
});

but had no joy. Am I missing something or is this feature not available?

Great project btw 😃

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
niagicommented, Jul 19, 2017
editor.on('load',
            function() {
                alert("loaded"); // or call another funcion here
            });
0reactions
lock[bot]commented, Sep 18, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Simple Triggers | Apps Script - Google Developers
Triggers let Apps Script run a function automatically when a certain event, like opening a document, occurs. Simple triggers are a set of...
Read more >
Scripting API: EventTriggerEditor - Unity - Manual
The function either returns if the editor is already tracking the objects, or destroys the previous editor and creates a new one.
Read more >
Component loading on event trigger - Stack Overflow
Seems to me as creating and loading/linking Edit component dynamically in dom on click event of Edit link but not sure (which I...
Read more >
Event trigger on Grid Editor Pop-up Load - Telerik
I'm using the Grid Editor with a Partial View. One group of inputs in the editor should only be displayed if a boolean...
Read more >
Events - DataTables Editor
To provide this information, Editor will trigger custom events as it processes the form operation. Events provide a single point of interface for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found