Hi. Hi, I created an "img-link" component that as its name indicates is a link that contains an image. When I insert my component into the editor everything works perfectly. But when I want to edit my template afterwards. It no longer recognizes my component as an "img-link" but as a simple image, and therefore no lon...
artf
Hi Jeremy, might this https://github.com/artf/grapesjs/wiki/Components#hints be the case?
SwithFr
Thank with a plugin it's works !
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 ! On storage manager "load(keys, clb)" there is an unnecessary Regular expression creation inside a loop that don't need to be there. Here is the fixed code. Cheers !
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 ! I noticed a problem with style manager when we add/remove classes. When we remove all classes it doesn't remove then from the generated source. Steps to reproduce: 1- Select an element to style (preferable one without any class) 2- Add a new class 3- Look the generated source code (View code) the class should...
mingodad
Trying to find the problem I can see that the canvas has the class removed but not the model, I'm trying to find where in code it was supposed to be removed but I'm having a hard time finding it. Anyone has any idea ?
mingodad
After several attempts I found a place to clear the class from the model but I'm not sure that this is the best place or form to achieve it. In SectorsView.js:targetUpdated()
artf
Hi @mingodad and thanks for this catch, actually the real issue was updating attributes reference here https://github.com/artf/grapesjs/blob/dev/src/dom_components/model/Component.js#L285 I'll publish the fix in the next release
Hi @artf, I have a question about select parent function. Cannot select the parent when parent element is not selectable, suggest to skip the parent element then select parent's parent element until to the div#wrapper.
ryandeba
I could probably help out here - I'll try to make a pull request later today or tomorrow.
TWCM
Hi @ryandeba, Thanks for your effort.
TWCM
Hi @artf, more one question, can i have a enhancement for select command, when the cursor click or hover the element which is not selectable, then the selection jump to available element. Since the element not available to select, i want t...
Please let us know what changes has been done in Navbar plugin in grapes.min.js file when mobile view is clicked as we are using older library but Navbar plugin is not working. Menu view is not clicked during mobile view due to what menus are not displayed.
artf
@Deepak813 why you don't update to the latest version?
Deepak813
Hi @artf, Thanks for the message. Actually, we have certain customisation in grapes.min.js file due to which we are not in that position to update to the latest version.so please kindly provide solution for changes done in Navbar plugin in...
artf
Currently, each new release ends the support of the previous one, so in your case, you have to figure it out by yourself what is changed. I highly recommend to update to the latest version and create always plugins for any customization.
I have an issue with hidden fields inside a form element, I want to select the form in the editor and then change the values of the hidden fields by clicking on select boxes. I've added the select boxes to a new panel. How do I find the hidden fields within the selected form component and then set their values? The hi...
michaellwatson
Great stuff, grapesjs is amazing btw
artf
Hi Michael, you might want to rely on Component's view for this purpose Probably I'll add find(query) into Component in the next release
michaellwatson
Thanks @artf this is what I ended up with This kind of repeats itself a bit, because each hidden field is picked up in the foreach, but the $el variable holds all of the hidden fields, which is why added the returns to break the loops. Wou...
I want to add and remove classes to a selected element, adding classes is working well, but removing them is not I want to be able to do componentModel.removeClass('form-color'); But its throwing an error. I'd be grateful if someone could share the correct syntax
artf
I'll add removeClass in the next release
juanj
Looking at https://github.com/artf/grapesjs/blob/dev/src/dom_components/model/Component.js#L276 I would say removeClass is not implemented. If you know the other classes I think you can do setClass with an array that don't have the class y...
It was mentioned in the Roadmap (#74). Has anyone started on this? I could benefit a lot from such a plugin, so I'd be willing be contribute.
z1lk
Yeah, since it seems no one has started the project, I did: https://github.com/z1lk/grapesjs-blocks-bootstrap4. I'm not a super-experienced JS developer so any comments or help is welcome. Thanks for the sick plugin boilerplate @artf
artf
Has anyone started on this? From what I know noneI'd be willing be contribute It'd be awesome
artf
Well done @z1lk let me know when you've done, I'd be glad to put on README
I'm trying to add a custom block and work fine, except that the styles attributes are set to a default class, for example i want those css attributes be set to the class i'm setting in the classes attribute ('header-banner') how can i do that?
juanj
To achieve this, you need to add the style separated from the block and set the classes to the block. Look for example how this is done in the basic blocks plugin: https://github.com/artf/grapesjs-blocks-basic/blob/master/src/index.js#L29
artf
You can also do this
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.