hi ,Thank you for your advice on the previous question.but when i change the content ,there will be a extra table.can you tell me which method can just change the content?
artf
again @ionic666, components are children, so you're NOT replacing the component, you're just adding children. If you need for example to update attributes of the wrapper you do this selected.setAttributes({ property: 'value' })
ionic666
@artf sorry ,i just want to know which method can change the content in table.because i want to change the 'tr' and 'td' in 'table'
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, Are there any other export options than HTML/CSS ? I'm thinking of a way to directly load the configuration from a remote server and render it on a web page on the fly. Good job on grapejs! :)
artf
Yeah sure, I explain the exact thing here https://github.com/artf/grapesjs/wiki/Storage#store-and-load-templates You can init the editor from HTML or directly (without parsing) via the JSON
artf
Thanks @maxencehenneron but I don't understand how this I'm thinking of a way to directly load the configuration from a remote server and render it on a web page on the fly (that you can alredy do it via the built-in remote storage) is rel...
maxencehenneron
Currently, grapeJS exports the template in HTML/CSS, I wanted to know if there was an easy way to create a front-end app that would load the configuration saved by GrapeJS via the remote storage and render it on a web page. The flow would...
Hi @artf, On the previous issue #1132 about export <body my="attributes"> code, I think it's done using exportWrapper: true. But now experiencing constraints when it will import attributes from <body>, I try to set attributes does not work. I used importWrapper: true. Any solutions? Please help and thank you :) Figure...
shareefhiasat
Hi @agungaja , can you please point the documentation of exportWrapper: true, for some reason i cant find it , i think it may solve me the problem but curious to read its wiki ! Thanks
agungjanuar
yes it is true, I also can not find it. I was only given info by @artf in issue #1132. Or maybe I have a less exploratory documentation ๐. The point is, why when the content set uses var initcontent = $('#import_html').val(); editor.setCo...
artf
@agungaja there is no importWrapper option and you can't import tag <body>. GrapesJS expect the user to pass the CONTENT... not the WRAPPER (which in most cases is body), the wrapper should be defined by its configuration;
Hi, I've been using grapes for about a couple of days now. Thanks for the awesome work on this project. I've read through the API docs (hopefully didn't miss this piece) and I've also tried some stuff out. Basically, I'm using grapes to load existing .hbs (handlebars) files in that the user will then be able to edit....
kaloyankostov
Just to clarify further as I now feel that my post was longer than it needed to be. I did some more digging and found #978. The issue described there is identical to mine. I basically have a custom component which has several child element...
artf
I see there are some conflicts in few points:Keep the source code of the handlebars templateHave the individual elements of the rendered handlebars template be editable in the grapes editor If you edit stuff you'd expect to get those edits...
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...
I have enable dropzone on assetManager and i think it works correctly. But I also notice that the hovering effect when the image is being dragNdrop is not working. I just see the text on the upper left corner. here is my initiation of the grapesjs. as you can see there is no hovering effect just like what is shown her...
artf
@besingasj the styling of the dropzone is up to you
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 All, I need help integrating this into a web app that I have. Everything renders and works as expected but I am trying to get the uploaded images (through drag and drop) as a base64. Using an endpoint is not an option I can use. This is the code that I have Also after I process my external upload function do I j...
artf
Have you tried with this?
afaraha8403
Yes I tried that. But what I am looking for it to get the base64 file so I can upload to the plateform I am using and then adding the return url to grapesjs
artf
Well then use uploadFile and if you don't know how to get the base64 of the file try to copy embedAsBase64
Is there a way to extend a current property or create a new one to change multiple properties? I have a component in which I would like to change font-size and padding-left, padding-right etc within one property setting using a radio. But I noticed there is only one value set per option. Is there a way to change multi...
artf
Hi Fernando, you can find more about the Style Manager API here
fernandoagarcia
@artf My apologies. I meant to say that I would like to target width, padding-left, padding-right within one single property. Perhaps using a radio. I couldn't find an example of that in the docs. Was wondering if it was possible.
artf
Nope, style manager works per property. But you can create custom behaviors with Traits, in your case you can change the style