Closed cazcoder closed 4 years ago
Same here since grapesjs 0.14.9
.
runCommand('mjml-get-code').html
is working fine in 0.13.8
editor.runCommand('mjml-get-code')
seems to be working fine in the latest version
Any code did not work for me. I found it from source code
editor.runCommand('mjml-code-to-html')?.html
Hi, I'm new to grapes.js and am using the mjml plugin but can't figure out how to get the html. I want to save the html to the database when a save button is clicked on. A previous post said I must use editor.runCommand('mjml-get-code').html but it gives 'undefined' as the result. My code is the following:
var editor = grapesjs.init({ height: '100%', noticeOnUnload: 0, storageManager:{autoload: 0}, container : '#gjs', fromElement: true, plugins: ['gjs-mjml'], pluginsOpts: { 'gjs-mjml': {} } });
Any help would be much appreciated, thank you!