GrapesJS Issues

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

1,399 issues found

πŸ” outdated
#1722Jan 10, 2019by Ramkumar-Murugesan2 answers
0 reactions

How to make my custom tag as selectable and editable inside of canvas ?

Hi, I try to change my custom tag of ion-item has div in view properties but It doesn't work for me as I expected. my custom Blocks is my custom view is comps.addType('form-type', { model: defaultType.model.extend({ tagName: ion-item }, { isComponent(el) { if(el.tagName == 'ion-item') return {type: 'form-type'} }, }),...

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.

#1721Jan 9, 2019by ThunderDev12 answers
1 reactions

Resize image before adding it as base64

I'm currently adding images to the canvas as base64 (embedAsBase64: true). I don't want to upload the image for the moment, to keep things simple. But, I want to be able to resize or crop the image before adding it through the asset manager as base64, to avoid oversized images added by the user. Basically I would need...

artf

Well, obviously you can't resize and crop without having all the image data at first. So, on asset:add event propose your "crop and resize" solution and then update the asset with the new data

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.

#1720Jan 9, 2019by Ramkumar-Murugesan3 answers
2 reactions

How to add the button in custom traits

Hi, I try to add a button to my custom traits for my custom blocks but its not working fine as expected and also need to know how to call the function when we click that button, add icon inside that button also my code : my error screenshot: in the above screenshot, u can see an Add label inside the settings so what I...

ploutos27

hi again :) My bad, html button tags need textNode value is not visible remove value and add a textNode instead

ploutos27

Hi, First you need to define the new trait (button) and create it. After you define the new trait type you must call it inside you custom block

Ramkumar-Murugesan

@ploutos27 Thanks for your reply, I tried your code but it shows input box instead of button and my updated custom traits code is and my custom blocks is can u help me

#1719Jan 9, 2019by AkibDeraiya1232 answers
1 reactions

Event while click on image from asset modal

Hello @artf , Hope you are doing well. I am working on asset-manager. I have total 5 images as a default asset-manager image. I want to do like, 1) When user click on any default image from template then i want to change this image's id (Want to know about this how can i change) 2) Then once asset manager pop-up opens...

artf

i had tried with this event for change id, but not worked You should use setId methodWhen this asset manager will close then also need to get event that notify like modal is closed and on which image tag i had clicked. (Want to know about...

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.

#1718Jan 8, 2019by Ramkumar-Murugesan1 answer
0 reactions

QUESTION The name entered in the Traits for checkbox label is not getting updated to my html custom components.

WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdUse the GitHub Issues EXCLUSIVELY for BUGS, FEATURE REQUESTS or QUESTIONS. Prefix the title of the issue with its context, eg. [Bug]: ....Do a quick...

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.

#1717Jan 8, 2019by chiqui3d2 answers
1 reactions

Event on Close and Open Modal

I think it would be necessary to add the close and open modal events in the editor. Is it possible?

artf

Sure, I'll add them 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.

#1716Jan 8, 2019by chiqui3d3 answers
0 reactions

Block in Pannels?

I'm looking for a way to add a group of blocks to a custom panel, I'm talking about blocks and not buttons because they need to be "Drag and Drop"? What possibilities do I have?

artf

Hi @chiqui3d you can tell the editor when to append blocks at initialization: and then using the BlockManager.render method (check the example) to render filtered blocks

chiqui3d

Thank you @artf , but I still see that this is only valid for one panel, I do not see the way to have two panels, one for some blocks with their categories and another to have other blocks with other categories. This makes it impossible fo...

chiqui3d

Isn't there any way to have two panels with different blocks?

#1715Jan 7, 2019by JulioDavidMartinez3 answers
0 reactions

Hello, I am new to your project, but I love it. I have a small issue with image attributes.

I added two new traits to the trait manager for images. Width and height. I added it as a plugin following your example. It totally works and lets me edit the image attributes for width and height. The problem is that now the asset manager doesn't work any more. If I disable my changes then the asset manager works aga...

arthuralmeidap

Try to override from the image type itself instead of default type

artf

As already mentioned by @arthuralmeidap you have to extend the image component. So in your case (by using the latest grapesjs version) it could just be:

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.

#1714Jan 7, 2019by chiqui3d3 answers
0 reactions

Auto select componet in RTE

When I add a link from RTE, it is not selected as the link component, I have to deselect the parent component that is the TEXT and select again, because this does not do it directly? I thought the advantage of RTE was that, that if I add a component from RTE the TRAIT options of that component will be shown. Not that...

chiqui3d

I don't know if it's the right way, but I got it this way:

artf

I thought the advantage of RTE was that, that if I add a component from RTE the TRAIT options of that component will be shown. Not that I have to exit the TEXT again :( You're right @chiqui3d but when you're editing, the HTML text is "flat...

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.

#1713Jan 7, 2019by adamlc2 answers
0 reactions

Deleting Elements - Newsletter Demo

On the newsletter certain elements can't be removed. Try removing the "Free and Open source" button or the grapes logo for example. I'm also getting this issue on my local grapes too. Weirdly if you try to drag the element, but not move it anywhere it then lets you remove it. Using Chrome 71 on macOS. Hope that makes...

artf

Hi @adamlc this one is related to #1699

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