GrapesJS Issues

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

545 issues found

πŸ” typescript
#4743Nov 23, 2022by JonathanRiche1 answer
0 reactions

StylePrefix property not overiding the gjs in most elements with the gjs-class

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 107.0.5304.107 (Official Build) (64-bit) Reproducible demo link https://jsfiddle.net/jonrobert/2gLdur9c/3/ Describe the bug How to reproduce the bug?Modify the stylePrefix property on any of the options in the conf...

GJSBlock

Thanks for reporting this, @JonathanRiche. Great question about stylePrefix property not overiding the gjs in most elements with the gjs-class. The recommended approach with StyleManager is to use the event-driven API. Start here: Check th...

#4735Nov 17, 2022by vaneatka3 answers
0 reactions

ResetId types mismatch

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? n/a Reproducible demo link n/a Describe the bug How to reproduce the bug?. Go to https://github.com/artf/grapesjs/blob/dev/src/dom_components/model/Component.js#L1839.. Go to https://github.com/artf/grapesjs/blob/dev/index...

artf

This first one is the component method, the second is the block property (used here)

vaneatka

the reason I opened this issue is that the method is not visible. maybe there is need to a new entry for the method declaration in the types? like for the setId /*Set new id on the component / setId(id: string): this;

GJSBlock

Thanks for reporting this, @vaneatka. Great question about resetId types mismatch. The recommended approach with Components is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module Look for the...

#4691Oct 26, 2022by DhanaDSP11202 answers
1 reactions

Undo manager - Not working properly, when we try to apply and undo the background color then made click outside the block, then the removed color will appears

Undo manager - Not working properly, when we try to apply and undo the background color then made click outside the block, then the removed color will appears It occurs on version 0.19.4 to till latest , its working fine on below versions Reproduce links Working version : https://jsfiddle.net/0vpbLmxy/ Not working ver...

artf

Seems to be an issue with the color picker itself, I'll try to fix it for the next release. ps: for bug reports you don't need to create the discussion first, you can open directly the issue by following the template. This will also avoid...

GJSBlock

Thanks for reporting this, @DhanaDSP1120. Thanks for sharing your report about Undo manager - Not working properly, when we try to apply and undo the background color then made click outside the block, then the removed color will appears....

#4681Oct 21, 2022by Aar-if3 answers
0 reactions

Asset manager upload sending empty object to backend endpoint

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Firefox Reproducible demo link NA Describe the bug What is the current behavior? I have created a custom backend endpoint for storing my assets, when I used the upload method of asset manager it is not sending any data to...

artf

Sorry but by simply trying to submit an asset the payload I see is correct, so without a reproducible demo, it looks to be an issue on your backend side (ensure to have the proper body-parser).

Aar-if

Thanks, worked using Multer, the issue was with the body parser.

GJSBlock

Thanks for reporting this, @Aar-if. The issue with Asset manager upload sending empty object to backend endpoint appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and...

#4668Oct 18, 2022by GoodPHP3 answers
0 reactions

CKEditor5 + Froala + Tinymce6 into GrapesJS

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link Describe the bug CKEditor5: https://gjs.market/products/tinymce-6-inline-text-editor Froala: https://gjs.market/products/froala-inline-text-editor Tinymce6: https://gjs.market/products/tinymce...

micker

interesting feature

GoodPHP

interesting feature Thanks βœ…

GJSBlock

Thanks for reporting this, @GoodPHP. The issue with CKEditor5 + Froala + Tinymce6 into GrapesJS appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM modifications...

#4654Oct 11, 2022by malonecj3 answers
0 reactions

Custom component for text node including special characters

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v105 Reproducible demo link https://codesandbox.io/s/fancy-brook-ppyc8v?file=/index.js Describe the bug Background: I am trying to configure grapesjs to be able to edit markup that contains the Liquid template langu...

artf

Hi @malonecj I'm not sure how exactly you would expect to see and manage those components (especially when you combine templates inside conditions) but I think your current approach in isComponent is not properly correct as you have to dea...

artf

I'm closing this one as there are no issues with the core itself, if you have any other questions @malonecj let me know.

GJSBlock

Thanks for reporting this, @malonecj. Great suggestion about Custom component for text node including special characters! While this specific feature isn't yet in the core API, there are several ways to achieve similar behavior. Using the...

#4618Sep 26, 2022by TanyaKulikovskaya2 answers
0 reactions

Color input with no hash does not update color picker

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://codepen.io/ Describe the bug When using the color input with hash (hex color) everything works fine. However if I adding a hex value without hash (just digits) to the input and press e...

artf

Hi @TanyaKulikovskaya please provide a reproducible demo as from a quick check the color picker seems to work without hash

GJSBlock

Thanks for reporting this, @TanyaKulikovskaya. The issue with Color input with no hash does not update color picker appears to be a race condition or state management timing problem. This typically happens when component lifecycle events a...

#4607Sep 23, 2022by RomanGlazkov2 answers
0 reactions

JS error when moving an element with its child

GrapesJS version[x] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome v104Reproducible demo link https://grapesjs.com/demo.htmlDescribe the bug How to reproduce the bug?Select an elementHold down the CTRL key and select a child elementTry moving these elements What is the expected behav...

artf

I guess we should avoid selecting children of already selected components in the first place.

GJSBlock

Thanks for reporting this, @RomanGlazkov. Great suggestion about JS error when moving an element with its child! While this specific feature isn't yet in the core API, there are several ways to achieve similar behavior. Using the event sys...

#4601Sep 21, 2022by bit-ocean4 answers
1 reactions

Update() of custom types added to StyleManager is no more triggered when switching between some targets.

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chromium 104 Reproducible demo link https://jsfiddle.net/aw8p0h9j/ Describe the bug How to reproduce the bug?Open the jsfiddle link.Click between the divs, then between any of divs and the background. What is the expected...

ronaldohoch

Same as described here, not a issue: https://github.com/artf/grapesjs/issues/4350

artf

Yeah but even in a case of a custom UI, the update is skipped if the value is not changed as it's not necessary.

bit-ocean

The code that I pasted is using the standard api, pretty much copy/paste from the documentation. And clearly the update's mechanism has changed between the versions. Before if target element had been changed, the update was triggered, and...

#4600Sep 20, 2022by Aventrue3 answers
0 reactions

After Update to 0.20 from 0.19 the error Cannot assign to read only property 'defaults' of object '[object Object]' occurs

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? chrome Reproducible demo link none Describe the bug image.js : Code of Conduct [X] I agree to follow this project's Code of Conduct

collins-lagat

The release says that there a breaking change. Try that and see if the problem goes away. I got the same error but haven't tried the fix yet. https://github.com/artf/grapesjs/releases/tag/v0.20.1

artf

Yes, as mentioned in the release note you have to switch from the old legacy API for custom component registration.

GJSBlock

Thanks for reporting this, @Aventrue. The issue with After Update to 0.20 from 0.19 the error Cannot assign to read only property 'defaults' of object '[object Object]' occurs appears to be a race condition or state management timing probl...

Browse all topics