Issue with CSS comments on GrapesJS Web Builder #5721
Ashwary-Jharbade
started this conversation in
General
Replies: 1 comment 1 reply
-
But how do you imagine this? The editor cannot know which part of the code the comment belongs to, and after a few clicks in StyleManager, your comment won't be where you expect it to be. I think you should remove all css/html comments before saving. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
Is there any way to support and display CSS comments on GrapeJS CSS style viewer ?
When I tried adding some CSS styles using "Custom Code" block with some comments, GrapesJS removed the commented styles and replaced some of the style properties with "undefined: undefined".
I have taken some screenshot for our discussion reference.
I have an element with class "mybox"

I have used "Custom Code" block element to add some styles and comments.

Result: Once saved and tried to view my styles on CSS viewer GrapesJS removed a entire block of CSS and replaced some CSS styles with undefined values.

Note: I have experienced this on web version of GrapesJS Web Builder
Web Builder Url - https://grapesjs.com/demo.html
Beta Was this translation helpful? Give feedback.
All reactions