Css variables undefined value bug
No community answers yet. Open the original discussion on GitHub to share your solution.
Question
I am trying to extend the editor to support css vars i added:
:root {
--main-bg-color: brown;
}
to the page and i get in the browser:
:root {
--main-bg-color: undefined;
}
can you explain how the editor parses the css into the canvas? maybe i am missing something
Answers (0)
No answers yet.
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1614
[Bug]: adding css variables as style manager property
trying to add css variable to style manager causing error: Uncaught TypeError: Cannot read property 'toUpperCase' of undefined fiddle Am i...
Issue #1633
[Bug]: editor.runCommand('gjs-get-inlined-html') returns undefined (preset-webpage)
Hi, Artur I'm using grapesjs-preset-webpage v0.1.10, grapesjs v0.14.29 I'm trying to save templates with inline css rather than having clas...
Issue #557
Classes are missing on editor.gethtml()
I can see classes are added on canvas but when I get html via editor.gethtml(), i so some of classes are not included and it is just divs w...
Issue #1031
[Question] Custom icons
I want to add a custom icon to the grapesjs panel at the top of the editor page. Is it possible to do this with any SVG or with text? If so...
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.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.