Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Liste Import Event #104

Closed
FlashPapa opened this issue Jun 13, 2019 · 2 comments
Closed

Liste Import Event #104

FlashPapa opened this issue Jun 13, 2019 · 2 comments

Comments

@FlashPapa
Copy link

Hi all !
How can we listen 'before import mjml' ?
To test if there is & exist in code imported ?
Thanks

@DRoet
Copy link
Collaborator

DRoet commented Aug 5, 2020

In the v0.2.3 release you can now listen for the import event

editor.on('run:mjml-import:change', (mjml) => {
  console.log(mjml);
})

hopefully this covers this use case

@DRoet DRoet closed this as completed Aug 5, 2020
@karlitaviky811
Copy link

Hi, I'm using the latest version of grapesjsmjml and this solution doesn't work for me. I need to listen to the event when importing, can someone help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants