Inline option to generate HTML block like newsletter preset in grapesjs
rgernale opened this issue · 2 comments
rgernale commented
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.?
ronaldaug commented
@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
rgernale commented
thanks