GrapesJS Issues

3,464 parsed GitHub issues โ€” 370 solved ยท 90 open. Search, filter and explore battle-tested answers.

829 issues found

๐Ÿ” question
#1171June 6, 2018by ionic6663 answers
0 reactions

how to change the content

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.

#1169June 5, 2018by JulyanoF2 answers
0 reactions

[Question] Get and set some styles to active element (in components)

Is it possible to have some style attributes, for example, color, background-color, font-size, in component settings tab, together with traits?

artf

Well, not really but you can create a trait which on change updates the style of the component

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.

#1167June 5, 2018by maxencehenneron3 answers
2 reactions

[QUESTION] export options

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

#1163June 4, 2018by agungjanuar3 answers
0 reactions

[Question] How do I set <body> attributes

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;

#1162June 4, 2018by kaloyankostov3 answers
0 reactions

[Question]: Editable components in Handlebars rendered template

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

#1161June 2, 2018by besingasj2 answers
0 reactions

[Question] Do I need to include dropzone css to show the dragging hover

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.

#1158June 1, 2018by JulyanoF2 answers
0 reactions

[Question] Is there some way to know last time was stored?

I'm using autosave option in storeManager and I would like to know if is there some way to get last time content was stored

artf

Just make use of storage:store event and store it by yourself

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.

#1150May 31, 2018by afaraha84033 answers
1 reactions

[Question] Get Uploads as Base64

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

#1144May 29, 2018by fernandoagarcia3 answers
0 reactions

[Question]: Custom property to change multiple settings

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