GrapesJS Issues

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

743 issues found

πŸ” bug
#4187Mar 9, 2022by Townsheriff1 answer
0 reactions

Editor Destroy method throws an error in React

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 98 Reproducible demo link https://codesandbox.io/s/withered-rain-z74rst?file=/src/App.js Describe the bug How to reproduce the bug?Unmount child elementCreate useEffect with callback where editor is destroyed What i...

GJSBlock

Thanks for reporting this, @Townsheriff. Great question about Editor Destroy method throws an error in React. The recommended approach with Components is to use the event-driven API. Start here: Check the GrapesJS documentation for your sp...

#4176Mar 4, 2022by varadero2 answers
0 reactions

Rich text editor very big icons in Firefox

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Firefox 95.0.2 (64-bit) Reproducible demo link https://grapesjs.com/demo.html Describe the bug How to reproduce the bug?Use Firefox 95.0.2 (64-bit) to open https://grapesjs.com/demo.htmlDouble click on some text (like "Bui...

varadero

It looks like if I delete the <svg> elements which are part of the toolbar HTML, the vertical size becomes OK. These are the <svg> elements that cause the big height: This is how the rich text editor looks like when I delete them from HTML...

GJSBlock

Thanks for reporting this, @varadero. Great question about Rich text editor very big icons in Firefox. The recommended approach with ProseMirror is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific...

#4175Mar 3, 2022by sandeepyerkala2 answers
0 reactions

Offset lines are missing when reload frame

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 99.0.4844.51 Reproducible demo link https://jsfiddle.net/rakam/5o8te64y/19/ Describe the bug How to reproduce the bug?Add few components.After adding, reload frame by clicking on the right context menu.Offset lines...

artf

Sorry but I don't see right now any point of supporting/fixing the native reload of the iframe.

GJSBlock

Thanks for reporting this, @sandeepyerkala. Great question about Offset lines are missing when reload frame. The recommended approach with Canvas is to use the event-driven API. Start here: Check the GrapesJS documentation for your specifi...

#4174Mar 3, 2022by javadsamiee2 answers
1 reactions

Refresh page we will lost body/wrapper background color

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome 98.0.4758.109 Reproducible demo link https://jsfiddle.net/szLp8h4n Describe the bug How to reproduce the bug?"Body (Selected #wrapper) -> Decorations -> Background Color and set a colorSave changes then refresh the...

artf

Hi @javadsamiee thanks for the report. This is actually an old issue #2834 which I'm trying to address for the next release (I close this issue in favor of the old one).

GJSBlock

Thanks for reporting this, @javadsamiee. Great question about Refresh page we will lost body/wrapper background color. The recommended approach with StyleManager is to use the event-driven API. Start here: Check the GrapesJS documentation...

#4173Mar 3, 2022by Ameeko4 answers
4 reactions

Text element does not work properly

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome v98Reproducible demo link https://grapesjs.com/demo.htmlDescribe the bug I opened a notepad (Win11) I wrote this in the notepad: test [enter] test [enter] test [enter] I selected the entire text and copied it to the c...

Ameeko

Can anyone help me with this?

Ameeko

The text was a plain text, it had no tags. I tested with \n and \r\n line breaks, it doesn't work well. Unnecessary tags appear in GrapesJS when inserting plain text with line breaks.

Joshmamroud

@Ameeko & @artf I'm also having this issue. Has anyone found a fix for this?

#4168Feb 28, 2022by m-jojo-s1 answer
0 reactions

Hover not toggled until next mouse-enter

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome Version 98.0.4758.80 (Official Build) (arm64) Reproducible demo link https://jsfiddle.net/01pa5mty/9/ Describe the bug also thank you for adding hover:before and select:before events, will be really useful! How to r...

GJSBlock

Thanks for reporting this, @m-jojo-s. Great question about hover not toggled until next mouse-enter. The recommended approach with Components is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific mo...

#4166Feb 26, 2022by Ameeko1 answer
0 reactions

Open style manager - class can be added by pressing the ENTER key

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Chrome v98 Reproducible demo link https://grapesjs.com/demo.html Describe the bug In the "Open style manager", the CSS class can be added by pressing the ENTER key. If GrapesJS is inside a Form tag, adding the CSS class wi...

GJSBlock

Thanks for reporting this, @Ameeko. The issue with Open style manager - class can be added by pressing the ENTER key appears to be a race condition or state management timing problem. This typically happens when component lifecycle events...

#4157Feb 24, 2022by Adham3803 answers
0 reactions

Resizing canvas makes componenents end up with wrong positions once exported with dmode 'absolute'

GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? Microsoft edge 98.0.1108.56 Reproducible demo link https://jsfiddle.net/473b2tah/1/ Describe the bug The canvas resize is cool but does not take into account that one might be working with px offsets because of dmode which...

Adham380

I have sort of found a workaround... Set the .gjs-frame-wrapper to the desired width in CSS and transform: translate (- x px, 0px) for the iframe in CSS. The Canvas is not the correct width then (slightly smaller) but everything seems to w...

artf

https://github.com/artf/grapesjs/issues/3770#issuecomment-1059784514

GJSBlock

Thanks for reporting this, @Adham380. The issue with Resizing canvas makes componenents end up with wrong positions once exported with dmode 'absolute' appears to be a race condition or state management timing problem. This typically happe...

#4154Feb 23, 2022by Ameeko3 answers
1 reactions

Nothing can be edited inside the link element

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome v98Reproducible demo link https://grapesjs.com/demo.htmlDescribe the bug When I insert a text element into a link block element, the text element is no longer editable. Double-clicking on text element does not switch...

lofcz

duplicate of: https://github.com/artf/grapesjs/issues/4145 tl;dr: build grapejs locally as fix is currently unreleased or downgrade to 0.18.2

artf

Closing as duplicate of #4145

GJSBlock

Thanks for reporting this, @Ameeko. The issue with Nothing can be edited inside the link element appears to be a race condition or state management timing problem. This typically happens when component lifecycle events and DOM modification...

#4148Feb 18, 2022by varadero3 answers
2 reactions

0.18.2 / 0.18.3 removes all on... HTML attributes when block is drag-dropped in the builder

GrapesJS version[X] I confirm to use the latest version of GrapesJSWhat browser are you using? Chrome v99Reproducible demo link https://jsfiddle.net/jLo3qh7s/10/Describe the bug How to reproduce the bug?Create a block with content <input oninput="alert('123)" />Put that block into the builderLook at the HTML code What...

Ju99ernaut

That is the expected behaviour as stated in the release notes for 0.18.2

artf

Correct. In case you need to enable unsafe attributes (at your own risk), you can do it via config.parser.optionsHtml.allowUnsafeAttr option.

GJSBlock

Thanks for reporting this, @varadero. Great question about 0.18.2 / 0.18.3 removes all on... HTML attributes when block is drag-dropped in the builder. The recommended approach with GrapesJS is to use the event-driven API. Start here: Chec...

Browse all topics