Replies: 2 comments 2 replies
-
Your HTML code is in In the end, it should look something like this: <html ...>
<head>
<style>
= styles
</style>
</head>
<body>
= html
</body>
</html> |
Beta Was this translation helpful? Give feedback.
-
Here you can see an example of how to add HTML/CSS to the project JSON itself in the storage: https://grapesjs.com/docs/modules/Storage.html#common-use-cases I'd suggest taking it only as an example of how to export the code from pages. Keep the project file separate from the HTML/CSS data, and use the exported code only in the "export"/"publish" action in your application. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to retrieve the “built” page to display, but I don't seem to have this information in the DB.
In the
onStore
function I get this:And that's what's being stored in the DB, for editing the page using Graper this works, but I can't find anything useful in this answer for rendering the page itself.
Note: I found this answer, it says that Graper delivers the
gjs-html
andgjs-css
attributes, which are not present in my case.Beta Was this translation helpful? Give feedback.
All reactions