GrapesJS / preset-webpage

GrapesJS Plugin Webpage Preset
http://grapesjs.com/demo.html
BSD 3-Clause "New" or "Revised" License
335 stars 291 forks source link

How to render content #68

Closed chanpod closed 2 years ago

chanpod commented 2 years ago

So I have the editor working and storing/loading to/from my api. But I can't seem to figure out how to get the compiled output similar to the preview window in the pre-built grapesjs-preset-webpage.

I'm using angular and we aren't wanting to use the CMS for the entire page, just some sub-sections of a particular page. What is the command to render the final output of the CMS, NOT the editor. Just the raw html/css compiled together nicely in the iframe or whatever it's supposed to be in. Once again, just like the preview minus the little preview button still floating around.

Note* I've tried editor.getHtml(), but this is missing the styling.