GrapesJS Issues

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

743 issues found

πŸ” bug
#1396Sep 1, 2018by jmrgz2 answers
0 reactions

Background image layers

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 sele...

artf

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 tha...

jmrgz

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 dete...

#1394Aug 30, 2018by nojacko2 answers
1 reactions

Pasting multiple paragraphs aren't editable until Grapes reloads

https://grapesjs.com/demo.htmlIn the double click into the text "All text blocks could..." to trigger editing mode.Paste this text in: The text is not editable until Grapes is reloaded

artf

Thanks @nojacko found the issue, will be fixed in the next release

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1357Aug 12, 2018by ghost3 answers
1 reactions

Body -> Decorations -> Background-image

Version 0.14.25 | Local copy GrapesJS Tested in: Chrome 68, Firefox 61 Add a background image in "Body (Selected #wrapper) -> Decorations -> Background -> Layer # -> Image", save to db, refresh page, load from db, blank background. Same with image or color. Adding background After refresh page and, how can add a backg...

maryia-kabash

As a workaround for body background I use the following actions:save body background to DB separately from components and styles, via editor.DomComponents.getWrapper().attributes.stylewhen template is loaded set the style via editor.DomCom...

artf

I need to know what do you store in DB and how do you load it.

ghost

Hi, this is the code. This is the php code: store for load Thanks.

#1290Jul 17, 2018by AnkitKachhadiya3 answers
2 reactions

Set href for link block not editable once initialized

#1277 is closed but issue still exist so i have to post as new issue Thank you for the help for earlier @maryia-kabash @artf I have made a custom block for my custom link see code:editor.BlockManager.add("unsubscribe-block", { label: "Unsubscribe", content: { type: "link", content: "unsubscribelink", attributes: {href...

artf

Seems like it doesn't update on the first reset but it actually reacts on changes, indeed you're able to clean it after the first change. I'll check it

artf

@AnkitKachhadiya the fix will be available in the next release

AnkitKachhadiya

Thank you @artf for your atttention please let me know when its solved

#1246Jun 28, 2018by Jogai3 answers
0 reactions

How to preserve the Id attribute with toHTML

The changelog statesAdded the possibility to output custom attributes in toHTML method How do we use this feature? I cant find the corresponding issues, or any info on the options for the toHTML method in the wiki. I used this function in 0.14.20 and earlier to post the html to the server and do some more processing o...

artf

but now the id's are not in the html anymore Can you explain better your case because this new feature shouldn't change the previous behavior. BTW to explain this new option let's take for example a component that on component.toHTML() ret...

Jogai

You're probably right. It's not this feature that's changed that behavior. Maybe its a bug, you can change the title of the issue if you confirm it. My test case: Template: Version 0.14.21 html output (from grapesjs.com/demo.html): Version...

artf

Thanks @Jogai, you're actually right, there is a bug (will be fixed for the next release), but I'd like to suggest to try this option which should also correct the current behaviour: One day or another, probably, this will be true by defau...

#1224Jun 20, 2018by peakrams3 answers
0 reactions

Media query and classes rendering issue

Hi, I was trying to make a responsive layout but I discovered that the device switcher does not work consistently. The issue can be replicated in the official demo. Open http://grapesjs.com/demo.html Keep the "Desktop" as the selected device. Add at the top of the "Header" 2 block of type "2 Columns" (just above the m...

peakrams

Hello. There is or there will be any update about this issue? I've just tried to replicate it in the demo and the issue still persist. Unfortunately, I know only basic JS so I can't think of a way to fix this beaheviour myself. I don't kno...

peakrams

Hi, can someone help me with this issue? I have just replicated (in the demo) the second example I have provided in the opening post and it seems that nothing has changed from the last time. Thank you.

artf

@peakrams, unfortunately, no one worked on this

#1219Jun 19, 2018by hahenty3 answers
0 reactions

Event component:remove false triggers

Hello. Event "component:remove" triggers when any component deselected by ckicking on other place. Browser – Firefox (autoupdated) https://jsfiddle.net/szLp8h4n/207/ here "console.log" listens this event and prints on deselecting, including body of canvas. [google translated]

WkRPcoN

I can confirm I am experiencing the same issue on v0.14.20 this.editor.on('component:remove', function(model) { console.log('comp removed'); });

artf

Will be fixed in the next release

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1196Jun 13, 2018by WkRPcoN2 answers
1 reactions

AssetManager not automatically opening in v0.14.20

Hi, I recently updated grapesjs from v0.14.17 to 0.14.20 and found the Asset Manager no longer automatically opens when dragging an image from the Blocks Basic plugin or when dragging an custom block to the canvas. I have ensured that activeOnRender is set to 1 on a custom block, and it appears the Image block in the...

artf

Found the bug, will be fixed for the next release Thanks for the catch

lock[bot]

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

#1104May 12, 2018by atcq-me3 answers
2 reactions

Color trait can't setup property after 0.14.9

After v0.14.9 color trait can't setup component property when user press "OK" on colorpicker form. Live:v0.14.9 https://jsfiddle.net/Lqm7ouze/ (testprop is undefined)v0.14.6 https://jsfiddle.net/Lqm7ouze/1/ (testprop contain hex colorcode) Screenshots:https://ctrlv.cz/en/M7lghttps://ctrlv.cz/en/ltPo This problem is al...

artf

Thanks for the report and details @Nuzsk This should be fixed for the next release

artf

@jdodsoncollins it's fixed in the dev branch but was not yet released

jdodsoncollins

@artf I'm seeing this behavior still if you could take a look, on latest release. Reverting to v 0.14.6 solves it.

#1092May 7, 2018by xr0master3 answers
0 reactions

Traits and storage trigger

Hey, maybe it's not bug, i'm not sure. I have traits with changeProp: true field. When I change the value of trait by UI, model is changed and all works fine, but the new changes aren't saved in Storage. So, after refresh the editor, I miss the values. If I append any component, when Storage is triggered and all have...

artf

Should be fixed by this https://github.com/artf/grapesjs/commit/32c1b2c1f4e1bef967f43b0013bfd481cddb81c7

xr0master

Nope. It doesn't fix it.

xr0master

Probably the #1104 close to fix it

Browse all topics