Background image layers
Thanks @xamdam777 for the report. Actually, as you already indicated, this happens when you import the style (and browser's CSS parsers are pretty messy), and unfortunately, in few cases, conflicts happen. (eg. Chrome generates a style that even itself doesn't understand) the strange think happens here when you add a...
Read full answer below βQuestion
Bug: when your pre-defined block or saved templates have two or more background layers, if you add a new layer, a lot of new empty layers are created. How to reproduce it:Go to https://grapesjs.com/demo.htmlSelect the pink Header blockGo to Decorations -> background and add a new layerDeselect the pink Header and select it againGo to Decorations -> background, you will see new empty layersIf you repeat the previous cycle, you will get hundreds of empty layers. 30 seconds video showing the problem: https://screencast-o-matic.com/watch/cFQVb0q4Ex It happens in Chrome, Safari and Firefox, last v...
Answers (2)
Thanks @xamdam777 for the report. Actually, as you already indicated, this happens when you import the style (and browser's CSS parsers are pretty messy), and unfortunately, in few cases, conflicts happen. (eg. Chrome generates a style that even itself doesn't understand) the strange think happens...
Thank you very much @artf, now I completely understand the problem, damned browser's parsers! :) I have been doing some tests in addLayer() and refreshLayers(). This is my current approach, modifying refreshLayers() function, I try to detect the wrong layers and do not show them. I placed the code...
Related Questions and Answers
Continue research with similar issue discussions.
Issue #4249
Image src won't change in exported HTML
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? chrome 100 Reproducible demo link https://...
Issue #5607
Cannot expand previously empty layers
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v120.0.6099.199 Reproducible demo l...
Issue #5378
Uncaught TypeError: Cannot read properties of undefined (reading 'Canvas') while dragging a component in Layer Manager Panel
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v116.0.5845.97 Reproducible demo li...
Issue #6669
Cross-level reordering of blocks in Layer Manager causes Sorter errors and breaks further move attempts
GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://grap...
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
Vanilla GrapesJS vs GrapesJS With Plugins: What You Actually Get Out of the Box (2026)
New to GrapesJS? See exactly what the stock editor gives you, where it falls short, and which plugins close the gaps β a beginner-friendly 2026 comparison
Tutorial
GrapesJS DevTools: A Developer Panel Inside Your Editor
If you've ever debugged GrapesJS with console.log(editor.getSelected()) and a dozen throwaway event listeners β this post is for you.
Tutorial
How We Built Composeit in Record Time Using GrapesJS Shadcn
Bypass foundational builder boilerplate and focus on what truly matters.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.