GrapesJS Issues

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

1,399 issues found

🔍 outdated
#1537Oct 23, 2018by hpruvot3 answers
1 reactions

Duplicate component not style

Hi, First of all, thanks a lot for the awesome work ❤️ !!! I've a question about the duplication tool so here the steps to follow :I drag&drop a text componentI change the style (color in green, weight, size, etc...)I duplicate itI change the color in red BUT the original component changes in red too because they have...

artf

Hi @hpruvot I'd like to say, at first, if you clone a component with a class and you change it, you see changes on both, this is because how classes work. If you want to avoid the editor creating classes for you, use this option:

hpruvot

Oh sorry I missed that option, thanks 👌

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.

#1535Oct 22, 2018by christopherserrao052 answers
0 reactions

After custom component is deleted the Trait's view does not clear out

Hi, I'm using the grapesjs library version 0.14.33. I've created some custom components and I've noticed that on deleting the components the Traits panel does not clear out. For instance when the canvas loads and no component is selected, the Traits panel does not display any traits. The traits are displayed only afte...

artf

Ok thanks for the report. I'll fix that in 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.

#1534Oct 22, 2018by YashPrince3 answers
0 reactions

Update property Input value from model style.

@artf I want to update height of the element and want to give a custom height using following code It's working fine and it's update the selected model style but it does not update the property input value. How can we update the input values also while updating the style. Any help would be appreciated, thanks in advan...

artf

For now, use this editor.trigger('component:toggled') maybe one day I'll make it update automatically

YashPrince

@artf I have used ` but it did not updated the value of height field in left panel.

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.

#1533Oct 22, 2018by thanhpd563 answers
0 reactions

Color picker goes outside the editor screen when NOT FULL SCREEN

Hi, I have successfully contained div id="gjs" inside of another div container with left side menu and top menu. It's working well, but there is a problem. When i click on color picker to change background color, it does show up outside the screen. How can i fix it?

alfaalex81

I have defined the exact position on color picker definition, for example

thanhpd56

@alfaalex81 thank for your help. I did solve the problem by making its parents position to static so that the color picker position (absolute) align to the root (view port).

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.

#1532Oct 21, 2018by momu-smartcoach3 answers
0 reactions

How to ensure that the independent module is not dragged into other modules.

sorry to ask again,I really want to know How to set up the independent module is not dragged into other modules ,just like Built-in Blocks in grapedrop.com。 Eagerly looking forward to the specific code module modification,thank you!

momu-2016

help~~~~

artf

At the bottom of this https://grapesjs.com/docs/modules/Blocks.html you find an example of a Row block which does exactly what you need by using droppable/draggable properties of Component

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.

#1531Oct 19, 2018by alfaalex813 answers
0 reactions

Css class

Hi! Probably this problem is already posted, but I can't understand where I'm wrong. I use this three parameters on init GrapesJs. I would like GrapeJs not to edit preexisting css, but only creates its own. Is it possible? Thank you!

alfaalex81

For example i have this code on canvas GrapesJs add to CSS this class This rule modify all element with this class, this is a generic bootstrap class that we use in all site.

artf

@alfaalex81 I can't reproduce it, create a live demo please

alfaalex81

https://jsfiddle.net/ugc1otnk/ In the example when i change background color in the first column, GrapesJs set the css attribute to the external class "col-md-6", that is a bootstrap class name. I prefer Grapesjs set own class. Moreover I...

#1529Oct 19, 2018by krunal0393 answers
1 reactions

Componet is not editable

I have custom component and have applied editable=true but child element are not editable, I even tried adding data-gjs-editable=true and also try to use basic component blocks but entire component is not editable. var sliderType = 'hsbc-slider-1'; var createSliderComponent = function (comps, defaultModel, defaultView...

artf

traits are not visible when clicked on component. Because you're clicking another component (the inner one, which has its own traits), if you don't need that component to be selectable you can use selectable property <div data-gjs-selectab...

artf

You should put the HTML not inside content(in the block definition) but components

krunal039

@artf I have put inside components and if I do that way than traits are not visible when clicked on component. var sliderType = 'hsbc-slider-1'; var createSliderComponent = function (comps, defaultModel, defaultView) { var defaultType = co...

#1528Oct 18, 2018by nine-2-five2 answers
0 reactions

The custom block doesn't execute its script when autoloaded from localStorage

I'm using the following code for my custom block, and it works when the block is dropped on the canvas. But when the block is loaded from localStorage, it only creates a div wrapper and doesn't execute the content.script part of custom block.<br> I tried simplifying the script property to just alert or console call bu...

nine-2-five

False alarm, sorry. I checked the grapesjs-preset-webpage, and realized I was registering the block but no component. Once I added the component to editor.DomComponents, it started rendering the carousel even when loaded from localStorage.

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.

#1527Oct 18, 2018by Deepak8133 answers
0 reactions

How to add countdown/navigation event in undo/redo

Hello @artf, How can we add any changes/events in undo/redo Manager like when we drag element like navigation or countdown. Hope for positive response Thanks in advance

artf

Duplicate of #1512 @Deepak813 more issues you open, later you get the response... so please avoid generating useless noise

Deepak813

Hello @artf, My bad.I forgot that i have already opened this issue. I'll not repeat this thing. Thankyou

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.

#1525Oct 18, 2018by himanshubudhlakoti2 answers
0 reactions

How to get data from forms in grapesjs

Hello All, I am using Forms block in grapejs and using grapesjs with angular 6. but i am not getting that how can i get data from forms while clicking on submit button of form. i am using following code for forms as displaying in above snapshot i have filled form and now when i click on send button forms data should b...

artf

In the editor you just specify the action of the form, the rest has nothing to do with it (you have to deal with some server endpoint)

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.

Browse all topics