GrapesJS Issues

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

1180 issues found

#5207June 28, 2023by gxanshu2 answers
1 reactions

BUG: Duplicated CSS while multi page creation

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome latest Reproducible demo link https://codesandbox.io/s/withered-bush-wv29dx?file=/index.js Describe the bug How to reproduce the bug?... create multi pages in grapesjs.init()... check the styles of each page What is...

artf

This is intentional and I'm not planning to change this behaviour as you can easily create specific CSS selectors if you need different styles per page. The big benefit of this approach is to allow reusing selectors across pages.

hasan-aa

I think I'm experiencing an issue with this approach. I'm saving the pages to server like this: and loading them like this in a loop: The css rules targeting ids are working fine, but the rules with a class are duplicating even when loaded...

#5199June 23, 2023by rmadeiraneto2 answers
0 reactions

BUG: Changes in component's attributes being reproduced in all the instances instead of just one

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v114 Reproducible demo link https://jsfiddle.net/rmadeiraneto/t659usxv/39/ Describe the bug How to reproduce the bug?Go to the blocks list and drag the custom component "example" to the canvasThree elements that are...

artf

Thanks @rmadeiraneto for the report. Yeah, unfortunately that's an issue if you're mutating arrays/objects properties in that way and to avoid that you have 2 options:Avoid direct mutations (assign new references when you have to update th...

rmadeiraneto

@artf using defaults as a function works, thanks for quick response and for providing the alternative fix on this issue. About the first suggestion, I think it's not about people should mutate or not the object, because we're talking about...

#5184June 14, 2023by acantepie1 answer
1 reactions

BUG: Toolbar of ckeditor components is not correctly refreshed

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Version 113.0.5672.126 (Build officiel) (64 bits)Reproducible demo link https://grapesjs.com/demo-newsletter-editor.htmlDescribe the bug How to reproduce the bug?Go on demo website : https://grapesjs.com/demo-newsletter-edit...

artf

Thanks @acantepie please open the issue in the proper repo as this is not core related one

#5175June 10, 2023by krishnaeverestengineering3 answers
0 reactions

BUG: Move method is not working as expected

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Reproducible demo link https://codesandbox.io/s/adoring-margulis-873kdv Describe the bug Context Move component method doesn't work as expected. This piece of code doesn't work as expected. this piece of code should...

krishnaeverestengineering

Fix for this issue: https://github.com/GrapesJS/grapesjs/pull/5176

artf

Thanks @krishnaeverestengineering but this is actually the expected behaviour for moving the component inside the same parent. This is because the at should account also for the index of the component itself. So, if you try to move "Compon...

krishnaeverestengineering

Thanks @krishnaeverestengineering but this is actually the expected behaviour for moving the component inside the same parent. This is because the at should account also for the index of the component itself. So, if you try to move "Compon...

#5174June 9, 2023by tomsleeter2 answers
0 reactions

GrapeJS.com homepage hacked / chained redirect malware

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome 114.0.5735.110 (Official Build) (64-bit)Reproducible demo link https://grapejs.com *EDIT: This site / domain serves malware, it is missing the "s" in the real grapesjs.com domainDescribe the bug Upon visiting grapejs....

tomsleeter

This is intermittent, I'm now getting grapejs.com homepage as expected

tomsleeter

Okay this was my mistake, I mis-typed the URL / domain name-- missing the "s" in grapesjs.com. Visiting URL grapejs.com is a bogus address with a bunch of malware / popups I believe the incorrect domain redirects to grapesjs.com every othe...

#5173June 9, 2023by FaisalShaikhHA2 answers
1 reactions

BUG: editor.Css.setRule API not working as expected, it is not updating the rule existing rule.

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 112.0.5615.137 (Official Build) (arm64) Reproducible demo link https://jsfiddle.net/yhj6qa1u/6/ Describe the bug How to reproduce the bug?Select a component and add some style using Style Manager.Use editor.Css.set...

artf

Hi @FaisalShaikhHA this is expected behaviour but I guess the documentation of setRule is a bit misleading. The rule is actually updated (it doesn't create a new one with the same selector) but styles are simply replaced. This is what you...

FaisalShaikhHA

Thanks @artf for the clarification

#5167June 6, 2023by KevenDvorianoff1 answer
0 reactions

BUG: usePlugin is not a function

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? AllReproducible demo link NoneDescribe the bug Following the documentation on creating a plugin with the usage of typescript and using the "usePlugin" function to import the plugin into the editor, the browser displays the f...

sneddobuilds

Getting the same issue.

#5164June 6, 2023by shomeel1 answer
0 reactions

BUG: By default components are created using table in my demo project but the demo uses flex property to create components

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Version 112.0.5615.49 (Official Build) (x86_64) Reproducible demo link https://jsfiddle.net/shomeelconovo/k7L2rthg/1/ Describe the bug I need help with something regarding the grapes.js. I have created a project and whenev...

artf

https://github.com/GrapesJS/grapesjs/discussions/5163#discussioncomment-6162516

#5159June 1, 2023by CaptSadaf2 answers
0 reactions

BUG: Can't add placeholders drop down to text field drop down options with CKEditor enabled

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? ChromeReproducible demo link https://codepen.io/darrenbawag/pen/JjWBLrpDescribe the bug How to reproduce the bug?Open this link https://codepen.io/darrenbawag/pen/JjWBLrp and try to show the placeholder dropdown to toolbar o...

CaptSadaf

cc: @jcamejo @artf

artf

Those actions are only available for the built-in RTE, if you replace it with a custom RTE like CKEditor you don't see them. You have to use CKEditor itself for your custom logic.

#5156May 31, 2023by loclovepop2 answers
0 reactions

BUG: Cannot drag drop in mobile screen even add grapejs-touch

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome, IOSReproducible demo link https://www.lovepoptestsite.com/products/disney-s-hocus-pocus-black-flame-candle-pop-up-card?variant=40356218077273&preview_link=124907487321 password: ilovecardsDescribe the bug How to repr...

loclovepop

screencast-www.lovepoptestsite.com-2023.06.01-001711.webm This is video of bug

artf

I see the touch plugin works properly, ensure to have the mobile device enabled on load (eg. not simulated post load) so the polyfill could be loaded properly.