Replies: 1 comment
-
|
Could you provide an example of the HTML and CSS where the issue happens? That’ll help narrow down what’s going wrong. Also, the lines editor.setStyle('');
editor.DomComponents.clear();aren’t needed in this case. Try using the following instead and see if it solves the problem: editor.loadProjectData({
pages: [
{
frames: [
{
component: templateData.html,
styles: cleanCss,
},
],
},
],
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I’m new to GrapesJS.
When I load HTML from my database and apply styles, sometimes the CSS doesn’t load correctly.
I’m currently doing it like this:
The issue is that some components don’t get styled properly, and
editor.getCss();doesn’t return all of the CSS classes.Any help would be appreciated!
Beta Was this translation helpful? Give feedback.
All reactions