ronaldaug/gramateria

Inline option to generate HTML block like newsletter preset in grapesjs

rgernale opened this issue · 2 comments

I'm trying to add a button to open view code to show combined HTML & inline CSS - I can't figure it out. Do you have any documentation or working sample that shows how this is done.?

@rgernale
You can get HTML with editor.getHtml()
And get CSS with editor.getCss()

You can also check in GrapesJS Doc https://grapesjs.com/docs/api/editor.html#gethtml

thanks