We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I've not used typescript before so struggling to understand how I get the rendered HTML from an MJML template. getHTML() returns the MJML.
getHTML()
I can see I need to call the command cmdGetMjmlToHtml or mjml-code-to-html, how do I do that?
cmdGetMjmlToHtml
mjml-code-to-html
Thanks
The text was updated successfully, but these errors were encountered:
To run any command you call for `editor.runCommand("command-name"). I sugest you take a look at the tutorials in the grapesjs docs. Here you can see how to add custom commands and how to run them. https://grapesjs.com/docs/modules/Commands.html#basic-configuration
You can experiment more using the demo version of grapejs standard or with mjml online through the console in the devtools.
Sorry, something went wrong.
Thanks @gustavohleal I just figured out this.editor.Command.run, but runCommand is even better!
this.editor.Command.run
Yes it was in the documentation 😊
No branches or pull requests
Hi,
I've not used typescript before so struggling to understand how I get the rendered HTML from an MJML template.
getHTML()
returns the MJML.I can see I need to call the command
cmdGetMjmlToHtml
ormjml-code-to-html
, how do I do that?Thanks
The text was updated successfully, but these errors were encountered: