GrapesJS / preset-newsletter

GrapesJS preset configuration for the newsletter editor.
https://grapesjs.com/demo-newsletter-editor.html
BSD 3-Clause "New" or "Revised" License
193 stars 143 forks source link

How does javascript get html with inline style? #127

Closed JiaQin-6 closed 1 year ago

JiaQin-6 commented 1 year ago

How does javascript get html with inline style

ferulisses commented 1 year ago

Using the example: https://github.com/GrapesJS/preset-newsletter#usage

You can get the HTML using the following command:

let inline_html = editor.runCommand('gjs-get-inlined-html');