How to render the website in frontend after designing it in the editor?
I'd suggest reading this part https://grapesjs.com/docs/modules/Storage.html#store-and-load-templates
Read full answer below ↓Question
Hi all,
I am wondering how to render the website with our own components designed by the editor into frontend? I cannot find any info about it in the documentation.
I have tried several ways:
-
directly load the html and css get from editor (It is not working as it does not contain any components info)
-
use Canvas.getBody.innerHTML (It is working for some simple component, not working on some complex one, eg video component)
So, can anyone suggest me on how to correctly render the website into frontend (I am using Vue)?
Thank you so much!
Answers (1)
I'd suggest reading this part https://grapesjs.com/docs/modules/Storage.html#store-and-load-templates
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3269
Translating html string
Great library! It meets all the requirements but one: website text translation. I've searched high and low through the issue queue and docs...
Issue #3832
The css classes are removed and the autogenerated ids for each html tags gets changed ( Example : ivj5m-2) after each reload
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link Not there De...
Issue #3631
How to load dynamic content in the final HTML file?
I looked everywhere, including the issues section and tried a few things. But really unsure how to load dynamic content in my components al...
Issue #3347
How can I get Uncompressed JS code for me to edit?
Hi, thank you for reviewing my problem. I want to use my own JSEditor to edit html、css and js. 1、First, I use getHtml, getCss, getJs to dis...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins →Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.
Browse premium plugins →Related tutorials
In-depth guides on the same topic.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.