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

[Question] Adding Inlined CSS command for grapesjs-preset-webpage #60

Closed akhalid-dev closed 3 years ago

akhalid-dev commented 3 years ago

Hello @artf I read on this issue, that I can copy the 'gjs-get-inlined-html' command from the newsletter-preset. https://github.com/artf/grapesjs/issues/1633. I have tried scouring the code to find which code I can copy to add this command to the webpage preset. Any help would be appreciated.

akhalid-dev commented 3 years ago

Inline CSS can be generated using the Juice library, the HTML and CSS generated by grapes can be passed as a parameter and output is inline CSS with HTML:
https://www.npmjs.com/package/juice