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