Generated styles do not escape colons in classnames
Thanks for the report @kierenayima Selectors will be escaped in the CSS in the next release
Read full answer below ↓Question
Currently using GrapeJS for a project that I am working on locally and integrated it with some tailwind UI components.
It mostly works great, but I have noticed that making changes on some elements does not work (for example, changing text color or formatting).
Looking at it further I can see that this is because the generated styles do not escape colons from the classes grapesJs uses to make the CSS selector.
For example, this is a selector grapeJs outputs:
.text-3xl.leading-9.font-extrabold.text-gray-900.sm:text-4xl.sm:leading-10.lg:text-5xl.lg:leading-none{
color:#3866c2;
}
The selector should actually be something like this:
.text-3xl.leading-9.font-extrabold.text-gray-900.sm\:text-4xl.sm\:leading-10.lg\:text-5xl.lg\:leading-none{
color:#3866c2;
}
Answers (1)
Thanks for the report @kierenayima Selectors will be escaped in the CSS in the next release
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3412
Auto save is working partially and stops working after inserting text
hello guys. I am using this awesome project for a production app written with React.js, So I integrated it inside my app. everything works...
Issue #3345
Panels and Buttons section of getting started not working with Vue.js
I am working to get grapejs to work with Vue.js and am having no luck, I am following the getting started however I am unable to get it to...
Issue #5334
Selection of custom component type not working in the canvas
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome, Opera, Edge, etc Reproducible demo...
Issue #4099
"Using draggableComponents: false" still drag (clone?) some elements if i try to edit text
GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome v96Reproducible demo link https://jsf...
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.
Tutorial
Super Tooltip for GrapesJS — Version 0.1.5 Released 🎉
We’re excited to announce the v 0.1.5 update of Super Tooltip, our floating‑menu and tooltip plugin for GrapesJS
Tutorial
GrapesJS in 2026: The Complete Guide to the Open-Source Web Builder Framework
Master GrapesJS in 2026. Architecture, code examples, React integration, plugin development, Studio SDK, and how it compares to other projects
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.