GrapesJS Issues

3,464 parsed GitHub issues โ€” 370 solved ยท 90 open. Search, filter and explore battle-tested answers.

569 issues found

๐Ÿ” canvas
#1933April 1, 2019by Fi1osof3 answers
0 reactions

Render without iframe

You're submitting a FEATURE REQUEST Good day! Can you create CANVAS view with render without iframe? For render editor directly into some HTML-node.

artf

Can you create CANVAS view with render without iframe? No, iframes allow us to keep CSS isolated and trigger media queries, there is no reason for us to find a way to not using themFor render editor directly into some HTML-node. Just rende...

Fi1osof

It's a pity. I partially redid it without a frame, but did not fully achieve the result. In the case of a frame, the rendering of the react components breaks down. I had to write my own component. But now with component rendering everythin...

Lakshit-Singhal

It's a pity. I partially redid it without a frame, but did not fully achieve the result. In the case of a frame, the rendering of the react components breaks down. I had to write my own component. But now with component rendering everythin...

#1930March 28, 2019by rikoyudiansyah12 answers
0 reactions

[QUESTIONS] change 2 attributes with 1 trait

I have an input trait, I want to change the 2 attributes (name and type) on the selected input element, on canvas is appropriate, but in the final html(editor.getHtml()) it doesn't work, I've read https://grapesjs.com/docs/modules/Components.html#define-new-component but I didn't find a solution, Thank's

artf

You should change the model and not the view element this.model.setAttributes({ 'data-attr': 'value' })

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.

#1912March 21, 2019by simplecommerce2 answers
0 reactions

[QUESTION] Custom component default children

Hi, I am trying to understand how I can achieve the following.Create a component with a default content as children.Create a block to add that component to the canvas.Edit the component children to anything else and save the HTML result.Reload the component in the editor later on and continue editing. My issue is the...

artf

@simplecommerce a working example of a custom component with default children (it uses local storage) https://jsfiddle.net/t5yw48cs/ Try to review the way you store/load templates, maybe the issue is there https://grapesjs.com/docs/modules...

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.

#1906March 19, 2019by arthuralmeidap3 answers
0 reactions

Components & Js - Load Template

Hey, I have a component which has a JS attached to it. Everything is created using the JS. When I drag and drop my block for the first time, the JS runs fine and everything works nice. When I load an existing template, it seems the JS is not running. The JS creates some DOM elements like a DIV and CANVAS but they are...

artf

Hi Arthur, are you able to create a demo of the issue?Other problem: the data-gjs-type is changed to default instead of keeping my custom component type name when the template is loaded. It seems the isComponent method is not called when I...

ayazhussein

I'm having the same issue. When I drop a Component with a script, it works but after I refresh, it doesn't You can test it out grapesjs-component-countdown, after you refresh, the digits don't show up. this is my config ( it is used in an...

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...

#1903March 19, 2019by MisterFK2 answers
0 reactions

[BUG] map block issue

Hi, There is a "404" issue when drag&drop a map into canvas since the last release. The problem is also in your demo. Do you know how to fix that plz? Thanks for help !

artf

For now, add this I'll fix it the next release

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.

#1900March 17, 2019by cgrio2 answers
0 reactions

bug - plus sign ("+") not show if change the selection

to simulate de bug follow the steps: Click on a element in canvas Click on tab to add class click on the plus sign to add new class string click in other elements in canvas click on tab to add class "The button + is hidden" Suggestion reset the behavior of class + button everytime that some element is selected in canv...

cgrio

its a problem with css

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.

#1898March 16, 2019by foolsopts2 answers
0 reactions

some bug in grapedrop

Step to producedrag image-block to canvas and select background.drag icon to canvas.click on image-block and go to background style tab click on background and click image button.when modal shown click on any image (not double click) then close modal.Now look at the icon in canvas you cannot change it to another icon....

artf

You're right, weird issue, I'll check it later. I'm gonna close it as is part of the Grapedrop product and not the grapesjs core, btw thanks for the report

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.

#1896March 16, 2019by kaoz703 answers
2 reactions

[BUG] Component from custom plugin is not recognized

OS: Windows 10 x64 Browser: Chrome 72.0.3626.121 x64 GrapesJS: v0.14.55 Hello, I have some custom components (bootstrap tabs) in a plugin, for some reason some of the components of the plugin are not being detected by GrapesJS when loading it from the container elements, and others via dragging and dropping into the e...

artf

As you see, its type is div... this is why it never reaches the other type... look why and where that type is declared

kaoz70

Alright, that was the issue! I thought that the 'div' type was a default one set by GrapesJS. Thanks for all the help!

artf

It might be that elHasClass method?!?

#1895March 15, 2019by simplecommerce3 answers
0 reactions

[QUESTION] Drag component over canvas with script, script appended multiple times.

Hi, not sure if this is a bug or not. But I noticed a weird behavior, when I drag a block that has a component that contains a script function, it seems to append it into the canvas before its being dropped. And as you drop it, it appends another time, the script. If you never drop the block and just drag over and out...

simplecommerce

So I dug around and figured that it was the updateScript method in the canvasView that was being called every time a script property is found on a component, regardless if its still being dragged or not over the canvas. I did some patching...

simplecommerce

My previous solution did not work, so I had to scrap it, so I re-opened the issue.

artf

Hi @simplecommerce if you think it's a bug, please open an issue by FOLLOWING the template and create a reproducible live demo of the issue. It's really important because as we don't have a lot of free time we risk to waste a big part of i...

#1888March 13, 2019by RobertoCorreale3 answers
0 reactions

[Question] Add custom html inside canvas

Hi there, I'm using grapes to export a custom json with all the information i need, instead of HTML and CSS. For doing that I'm parsing the gpjs-components stored on localStorage. Now iI need to customize how components are rendered inside canvas. For example I have an Input component with two traits (label and value)...

artf

I think is because adding new nodes inside the canvas, grapes cannot calculate the correct order. Correct, the order is based on components in the model, not the view. So, just to be clear, that <label> you're adding in updateComponentView...

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.