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