GrapesJS Issues

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

545 issues found

πŸ” typescript
#3480May 25, 2021by samichamoun4 answers
1 reactions

How to control the height of the editor dynamically to avoid clunky scrolling

I've noticed if in the initialise function I set a height it will set based on a specific pixel amount e.g. height: "500px". However if you try to set with a percentage e.g. height: "90%" the editor has no height at all. Also I'm wondering what is setting the height if nothing is set because it appears to be automatic...

ahmedderkaoui

try to work with vh instead of px. eg: give the editor height: '80vh', your navbar height: '20vh'. This way, the vertical scroll will never be shown or needed as long as the sum of all elements's vh ≀ 100 Hope this helps.

samichamoun

try to work with vh instead of px.eg: give the editor height: '80vh', your navbar height: '20vh'. This way, the vertical scroll will never be shown or needed as long as the sum of all elements's vh ≀ 100Hope this helps. thanks this is usef...

artf

This is more a layout issue and not related to the GrapesJS editor itself.

#3477May 24, 2021by ahmedderkaoui2 answers
0 reactions

SetMessages() does not update i18n

By default, the editor is initiated with english language when the init does not contain: However, when I try to change the language using the i18n method: setMessages like below: editor.I18n.setMessages({ en: tr }); this happens:Opened tabs (like Style Manager which by default gets open at load) do not get updated by...

artf

Follow the issue template

GJSBlock

Thanks for reporting this, @ahmedderkaoui. Thanks for sharing your report about setMessages() does not update i18n. To help the team investigate and prioritize this: Please provide: A minimal reproducible example (CodeSandbox/JSFiddle) You...

#3476May 24, 2021by krishnaeverestengineering3 answers
0 reactions

TypeError: Cannot read property 'querySelector' of null

<img width="1172" alt="Screenshot 2021-05-24 at 6 55 23 PM" src="https://user-images.githubusercontent.com/55732888/119354444-b8cbb500-bcc1-11eb-8e67-27e020c879aa.png"> I was getting this error while writing unit tests and I am testing editor instance to be defined. Randomly test case is passing but mostly I am gettin...

YyueeiWY

It seems like u are missing the class name or parent element ID. below is the example of using querySelector. <pre> var parentElement = document.getElementById('deviceready'); var listeningElement = parentElement.querySelector('.listening'...

artf

Sorry but this might depend on way too many factors (eg. your environment) and has nothing to do with the core itself.

GJSBlock

Thanks for reporting this, @krishnaeverestengineering. The issue with TypeError: Cannot read property 'querySelector' of null appears to be a race condition or state management timing problem. This typically happens when component lifecycl...

#3475May 24, 2021by ThetripGr2 answers
0 reactions

Toolbar/actionbar buttons do not work when there are multiple instances present (Even in your demo)

Version: 0.16.44 You can get the version by typing grapesjs.version into the console Are you able to reproduce the bug from the demo?[x] Yes[ ] No What is the expected behavior? Every instance has their own toolbar working properly Describe the bug detailed So previously i made another issue relating to instances #335...

artf

Thanks for the report @DodoTrip The fix is ready for the next release.

GJSBlock

Thanks for reporting this, @ThetripGr. The issue with Toolbar/actionbar buttons do not work when there are multiple instances present (Even in your demo) appears to be a race condition or state management timing problem. This typically hap...

#3472May 24, 2021by YyueeiWY2 answers
2 reactions

Css attribute (-webkit-background-clip:text;) doesn't work in grapesjs-preset-webpage.

Version: "grapesjs": "^0.17.3" "grapesjs-preset-webpage": "^0.1.11" You can get the version by typing grapesjs.version into the console Are you able to reproduce the bug from the demo?[x] Yes[ ] No What is the current behavior? Css attribute (-webkit-background-clip:text;) doesn't work in grapesjs-preset-webpage(disap...

YyueeiWY

Alright I solved it by using grapesjs-parser-postcss I didn't know there's a CSS parser plugin. https://github.com/artf/grapesjs-parser-postcss

GJSBlock

Thanks for reporting this, @YyueeiWY. The issue with Css attribute (-webkit-background-clip:text;) doesn't work in grapesjs-preset-webpage. appears to be a race condition or state management timing problem. This typically happens when comp...

#3470May 22, 2021by iabhiyaan1 answer
0 reactions

How can we active trait manager (of the top right panel) when component is selected

WARNING READ and FOLLOW next 3 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdDo a quick SEARCH first, to see if someone else didn't open the same issueAll relative statements/questions have to be filled/answered, otherwise, th...

GJSBlock

Thanks for reporting this, @iabhiyaan. The issue with Question: How can we active trait manager (of the top right panel) when component is selected appears to be a race condition or state management timing problem. This typically happens w...

#3463May 18, 2021by anatoli-dp4 answers
1 reactions

Inspector overflow broken

WARNING READ and FOLLOW next 3 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdDo a quick SEARCH first, to see if someone else didn't open the same issueAll relative statements/questions have to be filled/answered, otherwise, th...

anatoli-dp

Maybe put the controls in the front of the text and then offset the entire box slightly for each indent or stacked item. That way u can stack them as far as you want without issue 🀷 Im going to end up rolling my own solution to achieve th...

artf

Yeah, unfortunately, the default layer panel is not that scalable, we need to rethink how is rendered

artf

Yeah moving controls in front of the text sound reasonable (eg. and make them visible only when I hover the component). Anyway, being not such a common case having so much messy structure I wouldn't put a lot of priority on this problem, b...

#3462May 18, 2021by ahmedderkaoui3 answers
0 reactions

Refresh/Re-render traits of all components in canvas

Is there a way to re-render or refresh traits (which are customs, not built-in traits) of all the components existing whithin the canvas?

iabhiyaan

`

artf

mmm what is the point? Your custom traits should already react to component changes (if you created them properly).

GJSBlock

Thanks for reporting this, @ahmedderkaoui. Great question about Refresh/Re-render traits of all components in canvas. The recommended approach with Canvas is to use the event-driven API. Start here: Check the GrapesJS documentation for you...

#3461May 17, 2021by ahmedderkaoui1 answer
0 reactions

Re-render trait on selected component

I know there is a function that can rerender the view of a trait. However, I still don't know how and where to use it.

GJSBlock

Thanks for reporting this, @ahmedderkaoui. Great question about Re-render trait on selected component. The recommended approach with Components is to use the event-driven API. Start here: Check the GrapesJS documentation for your specific...

#3460May 17, 2021by Redix02 answers
0 reactions

TypeError: Cannot read property 'get' of undefined

Error: (node:206) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'get' of undefined (node:206) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled wi...

artf

Please follow the issue template

GJSBlock

Thanks for reporting this, @Redix0. Security and dependency issues are important. The GrapesJS team actively works on keeping dependencies up-to-date. For you right now: Run npm audit fix to see available patches Check for a newer GrapesJS...

Browse all topics