GrapesJS Issues

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

1180 issues found

#3199December 19, 2020by mohd74691 answer
0 reactions

BUG: block render function not trigger

@artf - In the documentation, it says that If we need to customize the aspect of each block preview we can pass a render callback function in the block. But here is the actual thing Basically, I wrapped this render callback in a function named func() and calling it on some ajax request If I call this on page load it w...

artf

The block manager doesn't see the change if you do this block.attributes.render = .... You have to update the property explicitly in this way: And be careful, the render function SHOULD return the HTML string or the DOM node, NOT a Promise...

#3198December 19, 2020by mprince2k181 answer
0 reactions

BUG: Can not get inline css code. how to use this?

When I runCommand for inline CSS, It's giving me a warning and undefined.

artf

There is no built-in command to get inlined CSS, but you can find how it was implemented in the newsletter plugin here: https://github.com/artf/grapesjs-preset-newsletter/blob/master/src/openExportCommand.js The core functionality is a few...

#3197December 19, 2020by craighaworth1 answer
0 reactions

BUG:

Version: "0.16.30 Are you able to reproduce the bug from the demo? [ x] Yes (the news letter demo) What is the expected behavior? Image resize handles should resize image without throwing an exception. Describe the bug detailed Clicking on any of the image resize handles throws an Uncaught TypeError. PropertyView.js:5...

artf

Thanks for the report, it'll be fixed in the next release.

#3190December 18, 2020by mshafiq2351 answer
0 reactions

BUG: src automatically added to video tag

Hi @artf, Thanks for building and maintaining this wonderful package. Issue I am using Nicepages to build template and upload it to my webapp. I have integrated with Grapesjs, which allows admins to edit the templates easily. The issue that I am facing is Nicepages adds video tag as follows When this template is opene...

artf

The default video component in GrapesJS is handled differently (without source). In your case, I'd suggest extending the default one and add the support for sources.

#3189December 16, 2020by marcepoblet1 answer
3 reactions

BUG: changesCount is incremented, without changes applied

double-click.pptx Is it possible that the "changesCount" parameter is not incremented when you only double click on a component? The parameter "changesCount" is incremented when you double click and no changes are made. I have attached a video in the pptx file, showing this behavior. This is reproducible in any browse...

artf

Should be fixed in the next release

#3186December 11, 2020by kuhelbeher1 answer
0 reactions

BUG: Resize with percentage

Hello, there is a bug with resizing elements when their sizes are set with percentage: You can check this issue here

artf

Not a bug, I've just never handled properly resizing with the percentage 🙃 A PR would be welcome

#3181December 11, 2020by congweibai1 answer
0 reactions

BUG: SelectorManager not return a String but an Object

Version:0.16.30 Are you able to reproduce the bug from the demo? [1 ] Yes What is the expected behavior?* SelectorManager.getState() is supposed to return a string according to https://grapesjs.com/docs/api/selector_manager.html#getstate Describe the bug detailed What is the current behavior? SelectorManager.getState(...

congweibai

Could you have a look at https://github.com/artf/grapesjs/pull/3182 is this fix this issue? Thanks

#3176December 9, 2020by mcottret3 answers
1 reactions

BUG: `setStyle` & `setComponents` options parameter not taken into account

Version: 0.16.30 Are you able to reproduce the bug from the demo? [x] Yes [ ] No Steps to reproduce:Open the consoleExecute editor.setComponents('', {avoidStore: true});Execute editor.setStyle('', {avoidStore: true});The "Stored ..." log still appears (see attached screenshot) What is the expected behavior? The option...

artf

Thanks @mcottret the fix is ready for the next release

artf

Unfortunately, due to the bad initial naming, avoidStore is intended to skip the UndoManager and not the Storage 😁 The good news, I had to introduce the new noCount option, in order to fix #3189, this will skip triggering the editor chang...

mcottret

Hello @artf ! I'm sorry to reopen this issue but the setStyle issue still seems to be present. Redoing the steps above, the "Stored ..." log still appears while calling setStyle with the noCount option. I'm seeing the fixed handleChanges h...

#3175December 9, 2020by mcottret1 answer
0 reactions

BUG: Selection & active RTE not cleared when component is removed programatically

Version: 0.16.30 Are you able to reproduce the bug from the demo? [x] Yes [ ] No Steps to reproduce:Select a text component in the demo's canvasThe selection box & RTE appearOpen the consoleExecute editor.setComponents('');The component is removed, but the selection box & RTE are still present (see attached screenshot...

artf

Thanks @mcottret for the report. I've handled this on my side, so it should be fixed in the next release, but as always, thanks for your willingness to help :)

#3169December 7, 2020by mrobertshaw2 answers
1 reactions

BUG:

Hi There I am trying to implement an editor where certain sections of the page are editable / droppable etc (i.e a mixed page where some elements are dynamic and others aren't). I am having a lot of success by using the data-gjs attributes to block this behaviour generally on the static elements however I don't seem t...

mrobertshaw

This is immensely helpful. Thank you for responding so quickly and for your fantastic, clever and well designed product which is a massive help to our product.

artf

Hi @mrobertshaw the main element is intended as the editor container and not the wrapper. You have to use this option if you need to edit the wrapper's props: