GrapesJS Issues

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

743 issues found

πŸ” bug
#2911Jul 22, 2020by FlowingCloudRTL1 answer
0 reactions

Infinite Recursion by dragging and dropping an component into itself on firefox

Version: 0.16.18 Are you able to reproduce the bug from the demo? [X ] Yes [ ] No What is the expected behavior? You should not be able to drag a component into itself Describe the bug detailed On firefox, you can drag a component into itself by directly clicking on the element and then drag it within itself. This get...

artf

Thanks for the report @FlowingCloudRTL. The issue will be fixed in the next release

#2887Jul 10, 2020by jgui1129No answers
0 reactions

Embedding Youtube Playlist Breaks the URL

Version: v.0.16.18 Are you able to reproduce the bug from the demo? [x] Yes [ ] No What is the expected behavior? It should render the playlist Describe the bug detailed Upon adding the playlist url using the embed code, it breaks and omit some parts of the url Ex: <iframe width="560" height="315" src="https://www.you...

#2882Jul 8, 2020by ghost2 answers
0 reactions

Problem with adding caption element block to the canvas

Version: 0.16.18 Are you able to reproduce the bug from the demo? [x ] Yes https://jsfiddle.net/triawarman/tmcoqxhp/ What is the expected behavior? When drag "caption" block to canvas, will add element <caption>Insert text here</caption> What is the current behavior? Adding text "Insert text here" directly to the canv...

artf

Actually, HTML allows <caption> only inside <table>s (https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption) so, the parser will always convert it in a text node, indeed the real issue is not the caption but the render of the t...

ghost

hy @artf thanks for your reply. actually after <caption> problem, i found another problems with table, i cant drag and drop <tr> to the <table>, and <th> <td> to the <tr> the demo code is here: https://jsfiddle.net/triawarman/tpnco4v6/ i f...

#2876Jul 4, 2020by fedulovivan1 answer
0 reactions

Resizing frame may be positioned around invalid element

Steps to reproduce:open newsletter demo at https://grapesjs.com/demo-newsletter-editor.htmlclean canvasplace "1/3 section"place "Image" in the middle columntry to resize image - works correctlymove selection to images's parent with click on upper arrow - resizing frame was moved to table cell which is incorrect. actio...

artf

Nice, it will be fixed in the next release

#2835Jun 16, 2020by letstri1 answer
1 reactions

Outside Shadow type is not applied

Got to https://grapesjs.com/demo.htmlSelect any itemAdd box-shadowSet box-shadow to insideSet box-shadow to outside Video: https://take.ms/9aFjz

artf

@BrooonS thanks, I'll check it out

#2824Jun 11, 2020by tonypartridge3 answers
0 reactions

Dragging items do not position on intital drag?

So when I drag a component/item from the bar to the center it will not go where I told it to go... IT always goes about 20% page width to one side? Once added it's adjustable. See this gif: https://gyazo.com/87076de55a1853e80b5dd7ea14ccb94e Does anyone have any suggestions?

RJCAM

Hi @tonypartridge Do you have the last GrapesJS version? This is working fine for me with the dragMode: "absolute", Check this basic code below:

artf

yeah... I can actually reproduce the same issue when a smaller device view is enabled, probably some kind of regression. I need time to investigate but at the moment I'm kind of busy with other stuff and dragMode is not my priority right n...

soltanloo

I have the same issue when I'm using the absolute drag mode. Blocks always fall out of the canvas and I need to scroll to grab them and place them back into the original desired position. @tonypartridge Did you figure out any way to fix th...

#2802May 26, 2020by meyerco1 answer
1 reactions

Editor get stucked when switching selection quickly between controls

DescriptionThe bug is reproduced on the current demo What happens ? When switching selection quickly between controls , the editor get stucked . Steps to reproduce on the demo Select one controls and move quickly selection to another . Do this few times the editor will get stucked . The error on console

artf

Thanks for the report @meyerco probably found the main issue, should be fixed in the next release

#2800May 25, 2020by meyerco3 answers
0 reactions

When removing a tooltip its css is not removed

DescriptionThe bug is reproduced on the current demo Expected behavior When a tooltip is removed its css is removed What happens instead ? When a tooltip is removed its css is not removed Steps to reproduce on the demo Clear the canvas Drag a tooltip Remove the tooltipClick on Import button on top toolbar , the toolti...

artf

Yeah, I think you're right, probably replacing with might fix the issue, would you like to check and create a PR? :)

meyerco

@artf Maybe this code to keep the code generic ?

artf

@meyerco πŸ˜… yeah sure, sorry, it was a copy-paste from my try

#2774May 14, 2020by vinceumo1 answer
0 reactions

MediaCondition: "min-width" breakpoints not applying the correct style in canvas

Hi, I'm having some issue with mobile first approach. The canvas render the wrong style when setting different styles at multiple breakpoints. But the code generated is good, this issue only happen in the canvas. https://codesandbox.io/s/xenodochial-shockley-s02lp?file=/index.js:496-524Are you using the latest release...

artf

We should apply the same logic from https://github.com/artf/grapesjs/blob/201e1f9a61783080f7be885e9e0be9a40ecc16cc/src/codemanager/model/CssGenerator.js#L151-L162 here https://github.com/artf/grapesjs/blob/201e1f9a61783080f7be885e9e0be9a40...

#2771May 13, 2020by antman33513 answers
12 reactions

Component with textable:1 not working since version 0.16.12

Hello, I've just updated to the lasted version 0.16.12 and have a bug when trying to move a component that has the property textable:1 into a text component. It works on the previous version 0.16.3. When i move the component I get an error in the console Uncaught TypeError: Cannot read property 'attributes' of undefin...

artf

I'm leaving here a working example of a textable component https://jsfiddle.net/artur_arseniev/0b9ox72g/

0099FF

Looks to have been introduced in 9c24108dadf2ded39e8805b6c4a5f00c626c468b. As pointed out by @antman3351 the model.getView().render(); call is the trouble maker. A little further down the call stack we attempt to update the view's attribut...

bogdanbs

My 2 ct to this. The problem lies on mixing asynchronous and synchronous code. The enabling of the rte: enable(view, rte) as well as the ComponentTextView.onActive and ComponentTextView.disableEditing are now, since the fix for issue #3475...

Browse all topics