GrapesJS Issues

Search parsed GitHub issues, see highlighted answers, and open the original discussion when needed.

95 issues found

#3246January 23, 2021by ThetripGr1 answer
2 reactions

Is it possible to use existing trait types in new custom traits? (e.g the colorpicker)

I would like to create a new custom trait to use, that has the input of the color picker and a checkbox so that the end result is either the predefined color coming from the checked checkbox or if unchecked choosing from the picker. This is too specific for my case so my question is if i can use pre-existing trait typ...

artf

Not at the moment, I'm working on a new UI module that will allow the reuse and override of internal UI elements.

#3230January 13, 2021by alivex2 answers
0 reactions

BUG: Modal won't open after closing it dynamically

Hello; Thank you guys for the great tool, I just love the documentation, the easy to use/understand. I think I ran into an issue with the modal not opening again after closing it dynamically the first time. example:

artf

I can't reproduce it on the official demo, eg. But just checking your code I'd say it doesn't open because you're closing it immediately after (just after the open is triggered), am I missing something?!

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

#3199December 19, 2020by mohd74691 answer
0 reactions

BUG: block render function not trigger

@artf - In the documentation, it says that If we need to customize the aspect of each block preview we can pass a render callback function in the block. But here is the actual thing Basically, I wrapped this render callback in a function named func() and calling it on some ajax request If I call this on page load it w...

artf

The block manager doesn't see the change if you do this block.attributes.render = .... You have to update the property explicitly in this way: And be careful, the render function SHOULD return the HTML string or the DOM node, NOT a Promise...

#3150November 23, 2020by michaelVictoriaDev1 answer
0 reactions

FEAT: Is there a way or tutorial how we can integrate in october cms ?

WARNING READ and FOLLOW next 3 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdDo a quick SEARCH first, to see if someone else didn't open the same issueAll relative statements/questions have to be filled/answered, otherwise, th...

artf

There is already a plugin for October CMS https://octobercms.com/plugin/pkurg-pagebuilder

#3141November 14, 2020by webdevhayes2 answers
0 reactions

Loading dynamic content

I really apologise if this has been covered previously. I have searched the issues and also read the documentation quite extensively and maybe I am not just understanding it correctly. I understand you can do run a script in the page builder to load the content however that content/html will be saved once I click save...

artf

I think you have to read this guide

anuragk15

Did you find the solution? I have a similar issue. For example, when I write blog and store them in my database. Now whenever someone visits my landing page(made with Grapesjs) I want them to see my latest blog there. Also, if some end-use...

#3091October 24, 2020by NeekoGta3 answers
4 reactions

[QUESTION] How to use grapesjs with static HTML

Sorry in advance for my English. I'm developing a CMS using Laravel and Vue.js. I want to use grapesjs for editing page content but with static HTML elements (like navbar, footer ...). Here is a simple image of what I would like to have. I went through the documentation to try to find answers and did several tests wit...

artf

There are different ways to achieve the same desired result, so I'd recommend checking these examples: Identify the editable component and ignore everything else https://jsfiddle.net/arturarseniev/aku70f5w/ Identify placeholder components...

NeekoGta

I found a solution by combining fromElement: true and this : https://github.com/artf/grapesjs/issues/336#issuecomment-332205060 But I have to use type: 'local' and can't use urlStore and urlLoad anymore. I have to implement myself the save...

NeekoGta

@akkivaghasiya5 2 years ago yes 😆 But trying again today, it doesn't seem to work. fromElement seems deprecated now. @artf It's possible to you to provide example how we can achieve this? Thanks!

#3086October 21, 2020by dharmatv3 answers
1 reactions

BUG: How to restrict the style manger properties based upon the component

Version: 0.15.9 What is the expected behavior? Whenever any component drag and drop into the builder part, that related style's properties I need to customize it. For instance Drag and drop the link component into the builder part, then I click on that, it shows the following style properties(Please check the link) ht...

MartinPutz

@dharmatv Hi there! This is not a bug, you can achieve it by defining the styleable properties for a component. Demo: Drag and drop the last block and you will see only (text)color can be changed. https://jsfiddle.net/MartinPutz/o376qsy1/

dharmatv

Hi @MartinPutz Thanks for your reply I understand. My requirement is needed only grapesjs components should not be custom components I didn't mention sorry for that

artf

You can use data attributes <div data-gjs-stylable="['color']"></div>

#3042September 23, 2020by patoperpetua2 answers
0 reactions

FEAT: Accurate Documentation on uploadFile

WARNING READ and FOLLOW next 3 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdDo a quick SEARCH first, to see if someone else didn't open the same issueAll relative statements/questions have to be filled/answered, otherwise, th...

artf

There is already an option for upload URL https://github.com/artf/grapesjs/blob/8822aa6c6e8ced09ad50f2c8392f1754d3a6ec8b/src/asset_manager/config/config.js#L18-L21

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

#3041September 23, 2020by WilburJZHAO1 answer
0 reactions

Question: How to render the website in frontend after designing it in the editor?

Hi all, I am wondering how to render the website with our own components designed by the editor into frontend? I cannot find any info about it in the documentation. I have tried several ways:directly load the html and css get from editor (It is not working as it does not contain any components info)use Canvas.getBody....

artf

I'd suggest reading this part https://grapesjs.com/docs/modules/Storage.html#store-and-load-templates

#3010September 8, 2020by vijayshukla303 answers
0 reactions

Asset Manager Configuration Is not Working

Hi, I tried all possible ways to change asset manager configuration, but it is not working as expected. Even I create a sample plugin but it does not seem to work. Basically I want to upload the file on my server, I gave the URL but it not sending any request on the server. I then override uploadFile, it works to send...

artf

You have to use the I18n module to update those labels

vijayshukla30

@artf This is not only about label. I gave my API URL in upload but not able to receive any call on the API, neither didn't see any in the network.

vijayshukla30

I tried to disable upload but not working. <img width="1384" alt="Screenshot 2020-09-15 at 12 48 57 PM" src="https://user-images.githubusercontent.com/11537372/93178562-0a469c00-f752-11ea-89ce-ed1b2a9ac33c.png">