GrapesJS Issues

3,464 parsed GitHub issues — 370 solved · 90 open. Search, filter and explore battle-tested answers.

3,464 issues found

#6562July 9, 2025by jsxOverdose3 answers
1 reactions

Moved element snaps to wrong position on resize

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 138.0.7204.101 Reproducible demo link https://jsfiddle.net/u3L89ejh/1/ Describe the bug How to reproduce the bug? Resize the image Drag it somewhere else on the canvas Click one of those little blue resizer squares...

artf

@jsxOverdose pushed a fix to this new release: https://github.com/GrapesJS/grapesjs/releases/tag/v0.22.11

jsxOverdose

@artf In the new version, there's another bug: when you click one of the resize handles on the Y-axis, it makes the image significantly larger. Here's the demo: https://jsfiddle.net/du81zL6r/

GJS Helper

The issue you're experiencing with elements jumping to an incorrect position after being moved and then interacting with the resizer is a known behavior related to how GrapesJS handles CSS top and left properties, particularly when positio...

#6558July 3, 2025by arustagi1011 answer
0 reactions

[layerManager] visible to hide works but not vice versa

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Version 138.0.7204.50 (Official Build) (arm64) Reproducible demo link https://jsfiddle.net/artur_arseniev/L24hkgm5/ Describe the bug How to reproduce the bug? add layers manager and use "grapesjs": "0.22.8" or "0.22.9" dep...

GJS Helper

You've accurately identified a regression in GrapesJS versions 0.22.8 and 0.22.9 where the Layer Manager's visibility toggle from 'invisible' to 'visible' was not functioning correctly. The 'visible' to 'invisible' toggle worked as expecte...

#6549June 25, 2025by yashvi20264 answers
1 reactions

Couldnt Resize image

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://codepen.io/Harshsne/pen/YPXdgmj Describe the bug How to reproduce the bug? upload an image change it to mobile view resize the image What is the expected behavior? When manually changi...

mosh-tudor

@yashvi2026 That's because of your custom CSS code. Remove this part: from editor.BlockManager.add('image', {

artf

I confirm the component resizer doesn't account for !important right now, but I'd follow, more or less, what @mosh-tudor suggested. You don't need to remove the entire styles, as my guess is what you need, but I don't see the point of havi...

yashvi2026

I need to use !important in my style. I've noticed that in other components, when !important is included in the default styles, the styles added through the style manager also include !important to ensure they override the default. So, whe...

#6543June 15, 2025by Zedonboy1 answer
0 reactions

Panel not removed

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? chrome Reproducible demo link none Describe the bug How to reproduce the bug? From the tutorial My CSS style What is the expected behavior? A blank canvas What is the current behavior? ... If is necessary to execute some c...

GJS Helper

The issue you're encountering, where the "Blocks" panel is still visible despite setting panels: { defaults: [] }, is a common point of confusion. The panels: { defaults: [] } configuration option is indeed designed to prevent GrapesJS fro...

#6535June 6, 2025by MikeCraig4183 answers
0 reactions

BUG(v 1.0.48): Pasting rich content splits attribute values into individual attributes

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link Change your version from 1.0.48 to 1.0.47 Describe the bug How to reproduce the bug? Copy rich content from word Paste into Grapes I'm using self hosted options What is the expected behavior?...

MikeCraig418

For more context, the HTML formatted content disappears from Grapes. The HTML stores strings like:

artf

What Rich Text Editor are you using? Are you able to provide a way to reproduce it (eg. a way I can copy the same text)?

GJS Helper

The issue you're encountering in GrapesJS v1.0.48, where pasting rich content (especially from sources like Microsoft Word) causes attribute values to split into individual attributes, is a known regression. This typically manifests as a s...

#6527May 22, 2025by tim-prom2 answers
1 reactions

Malformed inline styles causing editor freeze

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Firefox 138.0.4 Reproducible demo link https://codesandbox.io/p/sandbox/exciting-lalande-98d5vw Describe the bug How to reproduce the bug? Add page with component that has malformed inline styles Editor does not load and e...

artf

Thanks for the report @tim-prom

GJS Helper

The issue you've encountered, where GrapesJS freezes due to malformed inline styles, is a critical bug stemming from how the editor's internal CSS parser handles invalid syntax, specifically unclosed comments. Root Cause The problem lies i...

#6518May 14, 2025by jaredtmartin2 answers
0 reactions

Getting Started doesn't show Blocks as written

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 136.0.7103.93 Reproducible demo link https://jsfiddle.net/j826eL51/ Describe the bug How to reproduce the bug? Follow the steps in the Getting Started page When you get to Add Blocks, the blocks don't appear. What i...

artf

Thanks for the report @jaredtmartin

GJS Helper

The issue you're experiencing, where blocks do not appear when following the GrapesJS "Getting Started" guide, stems from a misconfiguration in your grapesjs.init options, specifically related to how the blockManager and panels are set up....

#6515May 13, 2025by jsxOverdose2 answers
0 reactions

Resizing an element affects all elements with the same class

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 136.0.7103.93 Reproducible demo link https://jsfiddle.net/L4pu0tzc/ Describe the bug How to reproduce the bug? Add multiple image elements to the editor. Assign the same class name (e.g., class="shared-class") to ea...

artf

Ensure to have this option enabled: https://grapesjs.com/docs/modules/Selectors.html#component-first-selectors

GJS Helper

The issue you're experiencing where resizing one element with a shared class affects all elements with that same class is a known behavior in GrapesJS, stemming from how it manages and applies CSS styles. By default, GrapesJS often tries t...

#6502April 25, 2025by jsxOverdose2 answers
0 reactions

Inline style overrides ID-based CSS rules

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v135.0.7049.96 Reproducible demo link https://jsfiddle.net/bqkLwt8j/ Describe the bug When an element has an inline style and also matches an ID-based CSS rule, the styles from the ID selector are removed - even if...

artf

Thanks for the report @jsxOverdose Will be fixed in the next release

GJS Helper

You've accurately identified a specific behavior in GrapesJS where inline styles appear to completely override ID-based CSS rules, even for non-conflicting properties. This is indeed a deviation from standard CSS specificity rules and can...

#6494April 15, 2025by yashvi20261 answer
0 reactions

Create and destroy repeatedly throws error

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://codepen.io/Harshsne/pen/QwwLjBQ Describe the bug How to reproduce the bug? Click Create and then Destroy repeatedly and rapidly. Upon debugging, I found that the error occurs due to th...

GJS Helper

The issue you're encountering with GrapesJS, where repeated rapid creation and destruction of the editor leads to errors like undefined 'allcomponents' and undefined 'lastcomponent', is a classic example of a race condition and state incon...