GrapesJS Issues

Search parsed GitHub issues, see highlighted answers, and open the original discussion when needed.

1180 issues found

#5674February 9, 2024by mauriciolcs21 answer
0 reactions

BUG: The infinite canvas is increasing its height infinitely when there is an element with a min-height of 100vh

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Arc version 1.29.0 (46113)Reproducible demo link https://grapesjs-react-custom-ui-vrkhwc.stackblitz.ioDescribe the bug How to reproduce the bug?Enable inifinite canvasAdd at least two components to the canvasSet a min-height...

artf

Avoid using infinite canvas as it was never documented and not even finished as a feature.

#5668February 6, 2024by addlistener1 answer
1 reactions

BUG: sourcemap not loading for CompoentTextView

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 121.0.6167.139 (Official Build) (x86_64) Reproducible demo link none. Describe the bug How to reproduce the bug?add customRte and set breakpointsclick step out until it reaches the logic in ComponentTextView What i...

artf

I can only suggest to check properly the source map path <img width="346" alt="Screenshot 2024-02-12 at 08 45 32" src="https://github.com/GrapesJS/grapesjs/assets/11614725/ee135460-a758-4aef-96fa-1d1b463c934d"> For example, it won't work i...

#5657January 31, 2024by leo-budgetsimpleNo answers
0 reactions

BUG: HTML Comment Tags disable text edit

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome 120Reproducible demo link https://jsfiddle.net/btmry08e/Describe the bug How to reproduce the bug?Init a grapesjs editor with this html: What is the expected behavior? To be able to edit the text What is the current b...

#5650January 29, 2024by Wayne-Mather1 answer
0 reactions

BUG: When inserting text when component not synced, the text is overwritten from the existing model

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Edge 121.0.2277.83, Firefox 122 Reproducible demo link https://jsfiddle.net/50mga1t7/1/ Describe the bug How to reproduce the bug?Create a toolbar action to insert some textEdit a text node and insert some textClick the to...

artf

This is not a bug, merging the current DOM with components requires a bit more effort. There is already a similar API you can use or re-implement with your own needs (using component definition instead of HTML string)

#5641January 24, 2024by yashvi20261 answer
0 reactions

BUG: Undomanager.remove() not working

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome v91Reproducible demo link https://codepen.io/Harshsne/pen/WNgZzPEDescribe the bug How to reproduce the bug?Append an image to the canvas and close the image modal.(so that component will be removed from tracking as i...

artf

The problem here is not Undomanager.remove but what is tracked. When you're resizing the image, you're not editing the Component itself but its CssRule object so that's why it's not working as expected. I'd probably suggest to simply skip...

#5633January 20, 2024by kla-ko2 answers
0 reactions

BUG: Cannot select component in ``component:remove`` handler

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Version 120.0.6099.225 Reproducible demo link https://jsfiddle.net/wattnu/opmwfvjn/ Describe the bug How to reproduce the bug?open and run the fiddletwo components are on the canvas. The "hello world" div and a blue...

artf

Thanks @kla-ko there is actually one logic that prevents selecting other components during component:remove events and I will fix it for the next release but what I'd suggest to you is to switch to another event. The event component:remove...

kla-ko

Thanks @artf . This works like a charme ! /

#5632January 20, 2024by Harshsne261 answer
0 reactions

BUG: Add a change to the undomanager

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v91 Reproducible demo link https://codepen.io/dhanadsp1120/pen/ExrRvOB Describe the bug How to reproduce the bug? 1.Disable the undo manager by invoking um.stop(). 2.Make alterations to the content. 3.Re-enable the...

artf

When the undo manager resumes, any modifications made after its pause should be treated as a single change. This ensures that clicking "undo" will revert the entire set of alterations to the state prior to the undo manager's interruption....

#5631January 19, 2024by Harshsne261 answer
0 reactions

BUG: Undo manager add() not working as expected

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v91 Reproducible demo link -- Describe the bug How to reproduce the bug? I wanted to add an change to the undomanager stack . var components = editor.Components; editor.UndoManager.add(components.getComponents().mod...

artf

@Harshsne26 you need to provide a reproducible demo for a bug

#5630January 18, 2024by kla-ko1 answer
0 reactions

BUG: configuring an onStart() resize callback prevents resizing

GrapesJS version [x] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Version 120.0.6099.225 Reproducible demo link https://jsfiddle.net/wattnu/y8L6whun/ Describe the bug How to reproduce the bug?Goto jsfiddlerun the codeon the canvas, select the blue div componenttry to drag the resi...

artf

Good catch, will fix it

#5621January 15, 2024by ronaldohoch1 answer
0 reactions

BUG: Border is not taken into consideration when showing placeholder on empty elements

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Edge last versionReproducible demo link https://grapesjs.com/demoDescribe the bug How to reproduce the bug?Get an empty elementAdd double border with high value. (20..30px...)Move any block into it.What is the expected behav...

ronaldohoch

https://github.com/GrapesJS/grapesjs/pull/5622