grapesjs
grapesjs copied to clipboard
How to grab the html code using javascript
I would like to grab the contents of the created HTML document using javascript so I can submit it using a form. How would I select the HTML content?
https://github.com/artf/grapesjs/wiki/API-Editor#gethtml
These two lines of code give you the html and the css
var Html = editor.getHtml(); var Css = editor.getCss();
Great! Thank you.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.