GrapesJS Issues

3,464 parsed GitHub issues β€” 370 solved Β· 90 open. Search, filter and explore battle-tested answers.

1,399 issues found

πŸ” outdated
#1163Jun 4, 2018by agungjanuar3 answers
0 reactions

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;

#1162Jun 4, 2018by kaloyankostov3 answers
0 reactions

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

#1161Jun 2, 2018by besingasj2 answers
0 reactions

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.

#1160Jun 2, 2018by ADTC3 answers
1 reactions

Demo pages are not loading - Aviary problem suspected

Similar to #1140 but it is in Firefox 60.0.1 (64-bit) and the Console spits out the following: On Webpage Demo: On Newsletter Demo:Are you using the latest release (older versions are NOT supported)? Don't knowIf you're not sure, type grapesjs.version in console and press ENTERAre you facing the bug with your local co...

blaasvaer

So, there are demos on the frontpage of the site that simply doesn't work without us having to go through hoops and loops. Why don't you simply fix the pages on the website!?

ADTC

Hmmmmmm the problem appears to have gone away after I posted this. I had refreshed several times before and it was still there before. If you think there's nothing to fix, please feel free to close.

babak-karimi-asl

i had the same issue . just install this chrome extension called HTTPS Everywhere . the blank page is because of some security risk of mixture of http and https requests and browsers will load the page but showing nothing . the error is re...

#1159Jun 1, 2018by Buubiye2 answers
0 reactions

How can i add a file importer to grape.js

I want to add a div where the user can add his own code to grape.js. So he can edit his pre-made code with grape.js. Any help will be greatly appreciated.

artf

Check this #324

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.

#1158Jun 1, 2018by JulyanoF2 answers
0 reactions

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.

#1157Jun 1, 2018by krunal0393 answers
0 reactions

Return span randomly in custom component

I have custom component and on trait change wanted to updated html but randomly it returned span/textnode in trait change function insted of html element. Below is html generated by component and on title change want to updated h4 element.linkModel.get("components").at(0) returns "div.programme-description" correctlyl...

artf

Well from what you've posted I can't tell what is happening but definitely, there is nothing generated randomly, just go deeper with the debug. BTW you can solve this easier by using find(query) method:

krunal039

@artf I tried to debug but no luck as it is happening on some pages and not on all pages. also this.find is undefined

artf

Just update grapesjs

#1156Jun 1, 2018by Deepak8133 answers
0 reactions

Plugin gjs-style-gradient not found

Hi @artf, I am getting this issue in gradient plugin "Plugin gjs-style-gradient not found".Used below code to include in our file: editor = grapesjs.init({ plugins: [ 'gjs-style-gradient'], pluginsOpts: { 'gjs-style-gradient': { colorPicker: 'default', grapickOpts: { min: 1, max: 99, } }, Also, i have reference this i...

ssabrewolf

you need to inlude the plugin js , here is working live version https://jsfiddle.net/ssabrewolf/7ur0cwq3/32/

Deepak813

Hi @ssabrewolf, Thanks for the message. I have used the same code but some time i get the same error "Plugin gjs-style-gradient not found" .See the code below: editor.StyleManager.addProperty('Page Settings', { name: 'Gradient', property:...

ssabrewolf

to discard problems in your enviroment simply create a fork ,is one cilck from the above link and use the same code your using to init

#1155Jun 1, 2018by grizzm02 answers
1 reactions

Custom component used as HTML in block

I've extended the default image component Then I've got a block where I'm going to use the extended image. The following works fine. However, this block will contain nested HTML (kind of a card) and one of the childs needs to be this custom image component. Using the following the img element is not recognized as my c...

artf

el.tagName === 'IMG'

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.

#1154Jun 1, 2018by alfaalex812 answers
0 reactions

Droppable propagation

I found a problem with droppable propagation. I do an example. I drop "3 columns" inside my template (yellow zone in jsfiddle), now, if i want add an image inside one of the columns, the green selector not appear. If I remove all data-gjs the system works correctly https://jsfiddle.net/7tdkjj6a/

artf

This happens because in the inner box you propagate droppable and when you drop the table its droppable goes to columns BTW use always the latest version

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.

Browse all topics