GrapesJS / preset-newsletter

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

how to get newsletter code #140

Open nimisha744 opened 3 months ago

nimisha744 commented 3 months ago

can you please help me to get this code ? https://prnt.sc/qAb-i9M5c6SF

by this i am getting only html let html = editor.getHtml();

i want that code as it is in the popup in my jquery log

carlosbranco commented 2 months ago

Do this : editor.runCommand('gjs-get-inlined-html')