-
Notifications
You must be signed in to change notification settings - Fork 38
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
Countdown not working; how to use JSON? #10
Comments
I mean you have to save correctly your templates https://grapesjs.com/docs/modules/Storage.html#store-and-load-templates
|
Hi @artf I was using some other editors for template creation in my app & many users are working on that, which is in HTML format. Due to many issues, I changed the editor to GrapesJS. Now, I'm facing an issue that the attribute like
I have tested this with saving the JSON by using The thing is that I can't fully rely on JSON, I need HTML with styles also. Is there any way to set component over the rendered HTML templated in grapesJS editor. |
Hi, @SintoDema . Are you also saving the styles, besides the components? A little excerpt of my code:
You should save components, styles and assets. |
Referencing what I think is the same issue as described in #3... the countdown works fine in the designer but does not render in my page. It looks as though the Javacript is not getting saved.
You responded; don't use HTML/CSS, use the JSON.
What does that mean? Right now, I'm added the rendered HTML from the GrapesJS to my DOM via an Angular app. Is that wrong? If I'm supposed to be using JSON to render, how do I do that? Is there an example somewhere of an actual rendering of the output created by the GrapesJs designer I could look at?
The text was updated successfully, but these errors were encountered: