Hi artf , i have created custom component and add traits for it , when dragging this component to editor and select it the setting traits work correctly . the proplem is when draged the same component behind the old component to editor and select setting traits the default traits will appear ( id , title) only , this...
artf
Please create a live demo of this issue
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.
Hey guys.really impressed with the great job done.I have a question regarding component development. the question is can i use react to develop plugins?if yes is there any doc or guideline related?
artf
Hi @B-Esmaili GrapesJS is framework-agnostic so you just need to use its API to define new components. Here some doc where you can get started:Create pluginsCreate custom Components
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 have created new block called sidebar that have dynamic updates by trait component ,trait contain checkboxes to dynamic change content by passing parameter to block , block updated but not rendered in editor,How can I render block in editor after click checkbox. I want to update ${data.cat} in editor block content i...
artf
Inside the canvas you have Components... not blocks. A block is just a container which creates components when you drag them inside the canvas. Read carefully https://grapesjs.com/docs/modules/Components-js.html and see how you can interpo...
alialrabi
Thanks for replay and for your great tool ,So is it possible to render the component by trait.
artf
Yes, you can listen for trait changes and doing whatever you want
When I open the grapejs editor for the first time it appears as white-board. I need to add default HTML layout (columns) like in this photo, how can o do this?Update: that's done, I get HTML & CSS and put them in grapejs my initialize code, but I found another problem I can't now resize the columns or put components i...
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, Hope you are doing good. How we can reinitialise the editor with json data. We want to reinitialise editor with some of the previous saved json data so that we can compare that. Is there any option so that we can change the content of editor based on json data without reloading the page ? All the Undo, Redo...
artf
I think this should be enough
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'm using Grapesjs version 0.14.33. I'm loading some components when the form loads and I have a component with a checkbox trait. When I load the component using editor.DomComponents.load, I'm loading the checkbox with the value true, which means that the trait should be rendered with the checkbox already checked....
artf
Update your grapesjs versionThe trait reads the value from the component, so place the initial value at the component level, not at the trait one
christopherserrao05
Hi Artf, Thanks for your reply. Can you please provide me a sample link, or if you could please update the jsfiddle, to explain what you mean by "place the initial value at the component level". Thanks
artf
I mean, when you add the checkbox element, put checked there <input data-gjs-editable="false" .... type="checkbox" ... checked/>
hi @artf here is my code of Export-template i make it editable Also, i add a media-query to display in view code with this editor.setComponents(mycss) when i update something form this button it'll work fine but i am using it in my rails app by including minified version . and when update something in rails all media-...
artf
Update your grapesjs and next time, please, create a live demo of your issues
Abhisheknanda1344463
Thanks @artf yeah definitely :)
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 want to dev some of feature to control the table. There are many feature for table the other editor like add columns, rows, set color, reset column width for each cell... I just have a dev plan to implementation on below..add a button on block manager this is a dummy table 3x3. each cell have a text component...
shubhd47
Hey, @cnaa97 No worries I have added the default commands in the toolbar. I got what I wanted. Thanks for helping. Below is the code
artf
The content inside the component definition is for static text (eg. the content is used for editing with Rich Text Editor) so you can't select its element once added, instead you should use components: '<tr data-gjs-type="row" ...'You can...
Hi, I'm facing as strange issue and I need your help. when I move components inside blocks, at the view model the changes successfully applied, but models it seems that grapsejs is not tracking (or I miss something), the parent components (or blocks your can check the image 1 here) are working fine but if I have inner...
artf
Please create a live demo with steps to reproduce the issue
ploutos27
Please create a live demo with steps to reproduce the issue Hi artf, thanks please give me 1-2 days to create a live demo! Thanks!
ploutos27
@artf here is the live demo: here I have also create a live video to help you understand where am facing the issue.. video link here Let me know Thank you for your help!!!