GrapesJS / preset-newsletter

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

Export Canvas #68

Closed adamwpe closed 1 year ago

adamwpe commented 5 years ago

Is it possible to export the canvas?

Because when you run:

editor.Commands.get('gjs-get-inlined-html').run(editor)

it only returns the content of the canvas, and not it's background colour / images?

Keyyubi commented 4 years ago

And that command clears the "data-gjs-removable" and "draggable, editable" etc. tags. I need to get the content with those tags/attributes, cause I need to prevent user editting when the user opens the content later on.

Is there any way to do that?

artf commented 1 year ago

And that command clears the "data-gjs-removable" and "draggable, editable" etc. tags. I need to get the content with those tags/attributes, cause I need to prevent user editting when the user opens the content later on.

You have to store and use the project JSON to edit it later, not the HTML output