Issue #1741💬 AnsweredOpened January 23, 2019by ateebahmed1 reactions

Can't render GrapesJS HTML/CSS when viewing page on frontend v0.14.50

Quick answerby ateebahmed1

@CaseJnr nope

Read full answer below ↓

Question

I have built a page and want to render it on frontend, the strategy I have implemented is to save my HTML and JSON style object and on frontend passing both of them. Then I initialize GrapesJS and set its style to the JSON I got from DB, then getting the CSS from that object. when rendering editor when rendering frontend I did the same thing when using editor with CMS and it works great, but somehow I can't load the full CSS from JSON on frontend. If I'm doing it wrong then please correct me. Thanks This is how it should look like and showing when using editor, It renders correct CSS on brows...

Answers (3)

ateebahmedFebruary 26, 2020

@CaseJnr nope

ateebahmedJanuary 23, 2019

Read here about storing templates in DB: https://grapesjs.com/docs/modules/Storage.html#setup-remote-storageOn the front-end, you don't need the editor, just print the HTML and CSS stored in your DB Actually I can't store CSS along with HTML and Styles as I am using a CMS table fields and only usin...

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.