GrapesJS Issues

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

877 issues found

πŸ” question
#4962Mar 7, 2023by himansh-gjr1 answer
0 reactions

Broken links in the docs

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? any Reproducible demo link no Describe the bug I believe many links of configuration objects in the docs are still to javascript files but the code has been updated to typescript <img width="1437" alt="Screenshot 2023-03-0...

GJSBlock

Thanks for reporting this, @himansh-gjr. The issue with broken links in the docs appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM modifications overlap, creat...

#4947Feb 27, 2023by FaisalShaikhHA4 answers
2 reactions

Undo manager not working properly on undoing a remove action

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome - version 110.0.5481.100 (Official Build) (arm64)Reproducible demo link https://codepen.io/faisal-praella/pen/ExeNwxJDescribe the bugI have added a custom columns component with a number trait name columns used for ad...

artf

Yeah undo triggers the change:columns, in your case you could try to wrap your updateColumns changes in editor.UndoManager.skip.

artf

Ok I'm closing this one then and please open a new bug issue related to checkbox traits.

FaisalShaikhHA

Thank you @artf it works, to fix this I was toggling the trait change listener by listening to undo command before & run events but this feels cleaner. The checkbox trait not getting checked or unchecked on undo/redo (trait value is update...

#4940Feb 21, 2023by mani-rai2 answers
0 reactions

Destroying and re-initializing produces "Cannot read properties of undefined (reading 'get')"

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Google Chrome Version 110.0.5481.100 (Official Build) (64-bit) Reproducible demo link https://stackblitz.com/edit/js-3urscf?file=index.html,index.js Describe the bug How to reproduce the bug?Initialize the editorDestroy th...

artf

Yeah, the editor instance is not expected to be destroyed immediately due to some deferred async functions (eg. for the StorageManager) but that can be fixed. For now you can overcome the issue by doing something like this:

GJSBlock

Thanks for reporting this, @mani-rai. Great question about Destroying and re-initializing produces "Cannot read properties of undefined (reading 'get')". The recommended approach with ProseMirror is to use the event-driven API. Start here:...

#4937Feb 20, 2023by besart-k2 answers
1 reactions

Block:custom is not working on React

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome Version 110.0.5481.100 (Official Build) (arm64)Reproducible demo link NoneDescribe the bug I am trying to replicate in React the customizing the Block Manager like in this example Vue block manager, but the "block:cus...

artf

@besart-k you have to provide a reproducible demo as if it works with the current Vue demo example it shouldn't be different in React. Maybe you're using an old version of grapesjs or doing something wrong in your React app, so in this cas...

GJSBlock

Thanks for reporting this, @besart-k. Great question about block:custom is not working on React. The recommended approach with GrapesJS is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module L...

#4929Feb 14, 2023by handhikadj4 answers
0 reactions

A tag inside button is removed

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome LatestReproducible demo link https://codesandbox.io/s/interesting-bell-xntbtrDescribe the bug How to reproduce the bug?go to the codesandboxdrag and drop Custom Code block.put this code inside the Custom Code editor a...

artf

This happens because of the button implementation in the forms plugin, which allows only textnodes as children. If you remove the form plugin you'll be able to see the <a> element (if you prefer you can also extend the button component wit...

handhikadj

so what is the code of "normal" implementation of the button? btw, may I know why do you make the button to behave like that on the forms plugin?

artf

If I recall properly the main reason there was a problem with inline text editing with button elements, so that approach was the easiest way to fix a common issue. I guess the "normal" implementation would be to skip/overwrite the init met...

#4922Feb 11, 2023by clonefunnels2 answers
0 reactions

Using !important code provided here breaks background image and gradient.

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Firefox Reproducible demo link https://jsfiddle.net/jLgb0mv3/1/ Describe the bug How to reproduce the bug?...Put this code in the editor: editor.on('styleable:change', (model, property) => { const value = model.getStyle()[...

artf

I only see the issue with composite/stack style manager properties and that is because not every style manager property is part of the styles so in your code you would only need to check if the value of the style actually exists, eg. if (v...

GJSBlock

Thanks for reporting this, @clonefunnels. Great question about Using !important code provided here breaks background image and gradient.. The recommended approach with StyleManager is to use the event-driven API. Start here: Check the Grap...

#4921Feb 8, 2023by ghost3 answers
0 reactions

[X] I confirm to use the latest version of GrapesJS

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Version 110.0.5481.78 (Official Build) (64-bit) Reproducible demo link https://grapesjs.com/demo.html Describe the bug How to reproduce the bug?Install GrapesJs with npm or CDN and initialize as usual to a container...

artf

Closing as this is not related to the core but to the demo page, please make a PR if you want to suppress those warnings

ghost

this is related to core not demo page , since i used the demo page for illustration

GJSBlock

Thanks for reporting this, @ghost. Great question about *. The recommended approach with GrapesJS is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module Look for the on() event listener method...

#4920Feb 8, 2023by c9a23342 answers
0 reactions

Missed localization keys for de locale

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Not browser related Reproducible demo link https://codesandbox.io/s/pensive-river-417grm?file=/index.js Describe the bug How to reproduce the bug?import grapesjs/src/i18n/locale/de.jsuse this as a locale in your editor con...

artf

Thanks @c9a2334 would you like to contribute on this fix?

GJSBlock

Thanks for reporting this, @c9a2334. Great question about Missed localization keys for de locale. The recommended approach with GrapesJS is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific module...

#4919Feb 8, 2023by maliuta-oleksandr2 answers
0 reactions

Calling destroy method breaks the editor ( React app )

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 109.0.5414.119 Reproducible demo link Describe the bug How to reproduce the bug?add event listener to outside clickcall destroy method What is the expected behavior?Destroying without errors What is the current beha...

artf

Are you able to provide a reproducible demo as I'm not able to reproduce it on my end?

GJSBlock

Thanks for reporting this, @maliuta-oleksandr. Great question about calling destroy method breaks the editor ( React app ). The recommended approach with Components is to use the event-driven API. Start here: Check the GrapesJS documentati...

#4912Feb 6, 2023by lexoyo3 answers
1 reactions

Broken links in the docs

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? any Reproducible demo link no Describe the bug Since the move from artf to GrapesJS I believe many links are still to the original repo https://github.com/GrapesJS/grapesjs/search?q=artf Should I try to replace it or do we...

lexoyo

I did a PR, I hope I didn't miss anything, I had to test almost each link

artf

I think some stuff are redirecting but others might be broken, I'd appreciate a PR if anyone is willing to help πŸ™

GJSBlock

Thanks for reporting this, @lexoyo. The issue with broken links in the docs appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM modifications overlap, creating a...

Browse all topics