grapesjs icon indicating copy to clipboard operation
grapesjs copied to clipboard

[QUESTION] How to get the html and css code in view code tool?

Open josefph opened this issue 8 years ago • 4 comments

or how to get all the html code and css so that I could save it in my database.

Or there is already a functionality in the documentation? your help will be much appreciated :)

josefph avatar Jan 30 '18 10:01 josefph

Sorry for this post. I was only able to look at the Open Issues not knowing that there are closed issues. I was able to know that I could use editor.getHtml() and editor.getCss() which I could just save right away in my database to save my template(the only way I know how to save the codes.). Is there another way for this?

josefph avatar Jan 30 '18 12:01 josefph

@pranzikkin you can set up a remote storage #778 which will store your data automatically

artf avatar Jan 30 '18 21:01 artf

what do i put in UrlStore?

josefph avatar Feb 05 '18 09:02 josefph

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock[bot] avatar Sep 17 '19 23:09 lock[bot]