GrapesJS Issues

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

1,399 issues found

πŸ” outdated
#2009May 11, 2019by ahmedeldeeb25-zz3 answers
0 reactions

'Select' trait no updated in edit mode

Hi there, There is a problem with me, I don't know if it from my code or from grapejs itself, For LINK tool, it takes its links from my DB that contains for ex: link1,link2, then I put LINK tool in my page and save it in BD. I added link3 to DB then when I go to edit my previous created Page that contains LINK tool, I...

artf

I think you're in the same case of #2007

ahmedeldeeb25-zz

I did the same but it removed my custom trait 'Page' in edit mode like in these 2 pics. @artf

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.

#2008May 11, 2019by amoslover3 answers
0 reactions

The canvas turns dark and unmodifiable on adding a large piece of custom html.

I used to add custom html with editor.addComponent(). It works well at most of the time, but when I try to insert a large piece of HTML which may contain a bunch of children elements the canvas turns black and cannot be modified. I can only reload the whole editor to make it works again.

artf

the canvas turns black weird thing. Are you able to create a reproducible demo? Upload here the template if you need

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.

#2006May 9, 2019by pcg923 answers
0 reactions

Change colors of words

Could be nice change in the same text, the colors of differents words, like the bold, or italic, maybe adding a new field color.

artf

You can add new actions via Rich Text Editor API

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.

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.

#2004May 8, 2019by Ericson19913 answers
0 reactions

Add Component(from BlockManager) into Modal

i want to make a button that displays modal, then i can add some component / block into the modal.

artf

At first, you should create a Component for the Modal, probably with a trait to trigger the visibility, and then create a button to trigger that visibility

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.

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.

#2003May 8, 2019by Jogai3 answers
0 reactions

How to select a specific element nested inside a template

My test case: https://codepen.io/jogai/pen/QRjKyN?editors=1111 I want to select the middle column so I thought I can use selectorManager.get() but its not selecting what I'm expecting. I supply the class name (because id doesn't work anyway) and the element with that class name has 4 images. but if I look in the colle...

artf

SelectorManager is meant for managing Selector entities (eg adding, updating and removing classes) not for selecting components. In your case, you should do this:

Jogai

Thanks for clearing up my misunderstanding!

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.

#2001May 8, 2019by shiva11893 answers
0 reactions

Unable to access the application in LAN network

Hi @artf , Could you please help me here. Unable to access this application in LAN network, could you please help me what needs to done to make this node application access in the LAN Network Thanks :)

artf

Sorry but this issue has nothing to do with the library itself

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.

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.

#2000May 6, 2019by DylanSp2 answers
1 reactions

What event is fired when a component's Id is changed?

I'd like to trigger some behavior when a component's Id is changed in the Settings panel. I've tried editor.on() with the following events:component:update:idcomponent:update:Idcomponent:update:{id}component:update:{Id} following the documentation here for component:update:propertyName, but none of them trigger the ca...

DylanSp

After some experimentation and looking through the source, component:update:attributes is what's fired.

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.

#1999May 6, 2019by acamenhas3 answers
0 reactions

Trait extends

Hi, I need to extends the video type, just to add a new trait/property: muted There is any documentation that can tell me how can i extend an existing type? Thanks

artf

To learn more about how to extend components start from here: https://grapesjs.com/docs/modules/Components.html The problem with the Video Component that its traits are handled a bit differently so in this case, I'd suggest looking at its...

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.

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.

#1998May 3, 2019by VM81981 answer
0 reactions

Extending Link component not working properly.

hello @hello @artf I am trying to extend the link component and add new traits like href and target the code is given below. `function loadWithOption(opts) { editor.DomComponents.addType('link', { model: dModel.extend({ defaults: Object.assign({}, dModel.prototype.defaults, { traits: [ // strings are automatically con...

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.

#1995May 2, 2019by trafalmejo2 answers
0 reactions

Binded events are not being loaded (Just work properly on mozilla firefox)

So I am using local Storage. I added some events to the component this way. Every time I add the component it works just fine. However, If I reload the page the component is still there but it is not triggering the click event or dblclick anymore. I noticed that this happens in Chrome and Safari browser. To solve this...

artf

You should add that code as a plugin

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