Hello, I want to do a button component, click on the button, it will pop up a dialog box that contains some text boxes and OK and Cancel button, click OK and Cancel button will perform different functions, may I ask how to achieve this? Thank you for your answer
JulyanoF
Hello @lypliuyinping You can create custom blocks like this:
lypliuyinping
@JulyanoF Firstly, thank you very much for your reply! Then, I would like to ask, how to achieve the button click event? For example: Click the button to bring up the text box.
JulyanoF
Are you using bootstrap? Or another js lib to create a dialog box?
Hello, I am a graduate student, I would like to study in detail Grapesjs, if convenient, can I share Grapesjs uncompressed source? I will be very grateful to you!
artf
Sure
lypliuyinping
Will you send it to my mailbox? Or share as a link?
artf
@lypliuyinping everything you need is inside src folder
QUESTION My site consists of various webpages like home-page, category-page, results-page etc. The css for all the pages are in a single css file (all.css). I am trying to load a single webpage (results-page) for editing by using the import plugin. Without making any changes I exported the html and css by using export...
JulyanoF
You can put your css inline like this: Or import a .css file, like 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.
I'm trying to reorder these blocks, removing all of them from BlockManager and adding one by one in my order preference, but it's still not working. Someone knows what is the rule to ordenate them?
artf
Don't remove them, just update and render
chiqui3d
@artf It would not be ideal to add an order option like this for blocks and panels.
artf
@JulyanoF you can re-render them in this way or, if it's just about reordering inside their categories, you can rely on order css property as its container is flex
Hi @artf, We have found that when we set background color of any element then no other element is draggable. This is the serious issue exists in latest library as well as the new grapes version downloaded. I am using latest version i.e /! grapesjs - 0.13.5 / Thanks
ryandeba
Hi @Deepak813, I'm tried recreating this in the demo (which currently uses version 0.13.5) but I have not been able to recreate it. Could you test there and provide steps to reproduce the bug? Or could you create a jsfiddle that demonstrat...
Deepak813
Hi @ryandeba, Thanks for the message, Please find below the attached video link of reproducing the bug: Url 1 : https://vimeo.com/251763933 Url 2: https://vimeo.com/251784423 This error exists in using color picker with any element in the...
artf
@Deepak813 yeap, seems like the colorpicker breaks the drag event attached to blocks
Hi guys, I need to solve a problem. Saving html grapejs strip all data-gjs- from html. Exists a way to maintain all data-gjs- before save editor html ? Infact if i save my template all data-gjs-droppable is missing and in a next render it doens load data-gjs-droppable attributes and son on. I save in this way: editor....
artf
@ghena you should store HTML/CSS for the final result, for the editor you have to rely on JSON format I think it would be better for you using the built-in remote storage instead of a custom one Check also #597
shareefhiasat
@artf how to save with remote end point with inlined html mode , i mean html and css into html sent to server ? thanks
artf
@shareefhiasat all you need is here https://github.com/artf/grapesjs/wiki/Storage
Hi artf, I am using new library of grapes but in newer library dynamic classes are not generated automatically on child cell like "c3130 etc". These classes are only applied to parent div not the inner div under that one. what we have to do to apply these custom classes on every divs that are in an elements.
ajaysofto
Hi artf, Its urgent,please reply as soon as possible as we are struck in the middle of the tasks. Hope for positive response.
artf
Its urgent,please reply as soon as possible as we are struck in the middle of the tasks PRs are welcome...
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.