Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export the editor data as HTML file #52

Open
canaryGrapher opened this issue Jul 20, 2021 · 1 comment
Open

Export the editor data as HTML file #52

canaryGrapher opened this issue Jul 20, 2021 · 1 comment

Comments

@canaryGrapher
Copy link

How do I export the various CSS and the HTML objects in the editor state into one single HTML file?

@thanhtunguet
Copy link
Owner

How do I export the various CSS and the HTML objects in the editor state into one single HTML file?

I don't know if GrapesJS supports this feature or not. Please refer to its documentation for more details.
You can save the editor to component state by using onInit function.
Then access editor's methods and properties to achieve your purpose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants