GrapesJS Issues

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

14 issues found

πŸ” can't reproduce
#3075Oct 16, 2020by hellocaio3 answers
0 reactions

Unhandled Rejection (TypeError): i.classList is undefined

Hi. I updated GrapesJS to its current version 0.16.22 and I get an error on the callback function: editor.on("component:add", (model) => { editor.select(model); }); The error stack: Unhandled Rejection (TypeError): i.classList is undefined Stack: ./nodemodules/grapesjs/dist/grapes.min.js/</</w.toggleClass/</< nodemodu...

hellocaio

Never mind, problem solved by: editor.on("load", () => { editor.on("component:add", (model) => { editor.select(model); }); });

hellocaio

Ok, never mind the previous never mind. It worked a few times now I'm getting the same error. Sorry about that.

artf

Can you provide a demo, please?

#3063Oct 6, 2020by HeyWrecker3 answers
2 reactions

Block Highlight Display Bug

Version: 0.6.18 You can get the version by typing grapesjs.version into the console Are you able to reproduce the bug from the demo? [ ] Yes [x] No I think this may be due to the demo being in full screen mode? What is the expected behavior? I would imagine that the Rich Text Editor toolbar placement should be near th...

artf

Look, in the latest release, we've added this option https://github.com/artf/grapesjs/blob/8822aa6c6e8ced09ad50f2c8392f1754d3a6ec8b/src/editor/config/config.js#L151-L157 So, at first, ensure you're not serving a cached grapesjs version fro...

HeyWrecker

@artf Like you, I wasn't able to reproduce in a fiddle. So I began decomposing the HTML piece by piece until I discovered that one of the primary site containers had an overflow-x: hidden; defined on the class and for some reason or anothe...

MartinPutz

@HeyWrecker I've seen something similar when no device is selected or the canvas is manipulated by external JS. Could you check the currently selected device using: https://grapesjs.com/docs/api/editor.html#getdevice

#3027Sep 16, 2020by gpmonch3 answers
0 reactions

Image asset manager, on remove no ability to re-upload the same image that was removed

Are you able to reproduce the bug from the demo? No, in the image asset manager in the demo there is no option to remove images. What is the expected behavior? When removing an image, if a user decides to re-upload it, before closing the asset manager dialog he should be able to. Describe the bug detailed Once a user...

artf

Hi @gpmonch, I'm not able to reproduce it, after deleting the asset I'm able to reupload it again. Are you able to provide a live example?

no-response[bot]

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take ac...

gpmonch

Dear Artur, Thank you so much for your reply, I'm sorry for only responding now, I've made a screen recording using webex of reproducing the bug in my local environment, Please let me know if this helps clear the issue, any help would be h...

#2842Jun 19, 2020by BerkeAras3 answers
0 reactions

Text shadow disappears on doubleclick

Hello. I have a problem, that the text shadow on text element disappears when I doubleclick the element. What should I do? Here is my code: https://pastebin.berkearas.de/?e1c4c8db9a70894f#DCUHVHZzyhFTnAk2RoJ9faQxQPvAqWMoiBqXHMEzRH5G

BerkeAras

Edit: The Text Shadow does not disappear. The shadow color is set to the shadow blur, and shadow blur gets 0.

BerkeAras

artf

I can't reproduce it on the main demo so I'd need also a live demo of your case

#1696Dec 31, 2018by muhamdgomaa283 answers
0 reactions

Traits appear first time when draged custom component

Hi artf , i have created custom component and add traits for it , when dragging this component to editor and select it the setting traits work correctly . the proplem is when draged the same component behind the old component to editor and select setting traits the default traits will appear ( id , title) only , this...

artf

Please create a live demo of this issue

no-response[bot]

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take ac...

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.

#1618Nov 29, 2018by ploutos273 answers
0 reactions

Child components are not tracked in models ??

Hi, I'm facing as strange issue and I need your help. when I move components inside blocks, at the view model the changes successfully applied, but models it seems that grapsejs is not tracking (or I miss something), the parent components (or blocks your can check the image 1 here) are working fine but if I have inner...

artf

Please create a live demo with steps to reproduce the issue

ploutos27

Please create a live demo with steps to reproduce the issue Hi artf, thanks please give me 1-2 days to create a live demo! Thanks!

ploutos27

@artf here is the live demo: here I have also create a live video to help you understand where am facing the issue.. video link here Let me know Thank you for your help!!!

#1468Sep 27, 2018by kornflex3 answers
0 reactions

Modaltitle no effect

Hello, I can't translate asset manager title to french. Example : assetManager: { storageType: '', storeOnChange: true, storeAfterUpload: true, modalTitle: 'Gestion des images', uploadText: 'Glisser - dΓ©poser les images ici <br><br> <i>(2Mo max par image)</i>', addBtnText: 'Ajouter', ... } modalTitle is not changed, i...

artf

I can't reproduce it, provide a live demo please

no-response[bot]

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take ac...

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.

#1369Aug 16, 2018by alimajed933 answers
0 reactions

Class of a block doesn't always show in the classes section

Hello everyone, I have added many custom blocks and gave the same css class to all the images in those blocks. Let's call it for now 'image-class'. When I drag and drop 2 of those blocks and select 1 image in 1 of the blocks, the class 'image-class' does not show at first click in the classes section in the panel on t...

artf

Can't reproduce it, just provide a live demo (as I suggest in the issue template) with that block

alimajed93

I will share with you some screen shots that will surely make this problem clearer:Step 1: Drag a drop a block in the canvas and select it by clicking on it <img width="642" alt="screen shot 2018-08-21 at 10 16 29 am" src="https://user-ima...

artf

I understand what is your problem but still, you have to post a live demo because I can't reproduce it. It might depends on many stuff, just screenshots are not enough. I'm not even sure you're using the latest version, so update it please...

#1186Jun 8, 2018by Chilli-B2 answers
0 reactions

Number trait returns 'undefined'

Hello, it's either a bug or a question, i don't know yet. I defined a new component with - beside others - a number trait, as you can see on the code below. Unfortunately when adjusting the number over the arrows coming along with the trait automatically, it very often switches to 'undefined'. Am I missing something o...

artf

For such an issue I'd require a live demo because you might be using an old version. BTW I wasn't able to reproduce it, so it might also be fixed. In case it's not, please open another issue, with a link to a live demo and exact steps on h...

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.

#1109May 14, 2018by FrciSmrci3 answers
1 reactions

Column blocks not droppable in canvas

Morning @artf :) I'm experiencing an similar problem to this issue. I can't drop any block (text, image, etc.) inside the column block from canvas. When I try to drop it inside layers it works normally, here is a short detailed screen recording of the problem with a visible html structure. Do you have any idea how to...

FrciSmrci

Hey @artf , figured out what was going on today, but forgot to close the issue in the euphoria. πŸ˜„ The classes from GrapesJS and Bootstrap were colliding, took me some time to realise that, because it worked when trying the same in layers....

artf

Hi @FrciSmrci honestly, I don't understand what is going on and can't reproduce it with the current demo. Did you customize those blocks somehow? From which preset/plugin do you get them? Are you able to reproduce it via jsfiddle? Your gra...

artf

I was thinking that maybe it would be a good idea defaulting it to a key like gjs-. What do you think? Yeah, probably that would prevent scenarios like this 😬 PRs are welcome :)

Browse all topics