#530November 15, 2017by tomichal2 answers
Steps to reproduce on http://grapesjs.com/demo.html :Click on the Layer Manager.Hide any layer, e.g.: the Header.Save the content - this happens automatically on the demo - which uses browser local storage, with auto-saving every single step.Reload the page. Result: The hidden layer is not visible on canvas, but still...
artf
Thanks for the catch @tomichal the fix will be available in the next release
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.
#529November 15, 2017by krunal0392 answers
#522 thanks for all help was able to resolve via this.model.attributes. but now I have another issue, where editor.setComponents reset value in editor of html retrived to default traits values. Application flow 1) User redirected to grapesjs editor to edit page content, where they can use different components 2) On sa...
artf
@krunal039 editor.getHtml() it's your FINAL output and obviously, there are no pieces of information about traits and other stuff. Store and use editor.getComponents() then, if you need the user to edit templates again.
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.
#528November 15, 2017by krunal0391 answer
@artf Sorry for creating another issue but I tried below code also I have created codepen for same. Codepen and still it only return empty div via editor.getHtml(), I can see html updated in canvas but not on model. Also updateSrc() and updateh2Content() function has var linkModel = this.get("components").at(0); undef...
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.
#527November 15, 2017by krunal0392 answers
#522 @artf I tried as you said but still no luck, I do not want to waste your time but it would be very useful if you can please create small sample or point me to sample, I am sure I am missing something. sorry had to open another issue but it in continuation of same #522, here it editor.html() only return default va...
adamlc
@krunal039 this isn't a support form. If you have any problems asking here is only going to infuriate the contributors. If you have a problem ask on Stack overflow, thats what its for....
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.
#526November 15, 2017by matiponce912 answers
Hi Arthur, I have developed a new feature that is the possibility to add tabs inside blocks panel (this is optional what it means that if you don't add any tab, blocks panel will continue behaving as before) and these tab could have their own categories and blocks. My question is if would be possible to add this featu...
artf
Just check here https://github.com/artf/grapesjs/issues/499 :)
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.
#525November 15, 2017by enricribas3 answers
Using code provided in docs. https://github.com/artf/grapesjs/wiki/API-Storage-Manager in "add" examples. I am trying to create my own storage method. The "store" method works fine, and it adds the content to the localStorage. I can inspect it and see in Applications of chrome devtools. With autoload: false, refreshin...
enricribas
Seems I have to manually call before the return result above. That's not in the example code. Is that correct? Seems strange to me, what about the other elements, gjs-styles and gjs-assets? Are they not needed?
artf
Hi Enric, actually the wiki is not updated with the new signature, you have to call the callback thanks for pointing this out
enricribas
Thanks, will give that a shot later!
#524November 15, 2017by ShepelE3 answers
Hello! Artf, thank you for grapesjs. I've been trying to google where these buttons should be added - nothing. So I think they should be shown by default. But not in my case (( Please, help me to figure out where the problem is I inserted grapesjs into React component - just simply inserted grapesjs init to componentD...
artf
Check here https://github.com/artf/grapesjs/blob/gh-pages/js/grapesjs-preset-webpage.js#L198
artf
@benvmatheson https://github.com/artf/grapesjs-preset-webpage/blob/master/src/panels/index.js
#523November 15, 2017by tldrjumps3 answers
How to export the HTML/CSS in the code view / download as zip. With the stylesheets in styles.css referenced in the grapesjs canvas, but not the unused, actually i am fine with all the styles.css stylesheet, for simple API access for export. If I add the stylesheet in init Yea, Table 😋 Thanks for the good work, let u...
artf
@chiqui3d definitely it shouldn't be added to what is used for storing otherwise you will add those styles twice.
artf
The issue I have is that when I try to export the code using the grapesjs export plugin nothing referenced inside canvas is exported. @Yakito For now, those scripts/styles should be included manually, you can use root option from the expor...
artf
Hi @tldrjumps I'm not sure if I properly got your problem. You can simply get all the CSS with editor.getCss(), which also tries to optimize it by removing classes without components. Styles inserted via canvas.styles option are just injec...
#522November 14, 2017by krunal0393 answers
#513 Sorry for opening new issue but you have closed last one so had to create new one, I am struggling with below so if you can help to resolve or guide me at sample code that would be great, or if you have quick 5 mins and create small codepen would be good, really appreciate your help. I tried you suggested but sti...
artf
You can trigger your actions on render...
krunal039
@artf I tried bust still no luck, can you please create small sample if that is possible?
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.
#521November 14, 2017by Eman-Shaaban2 answers
The remote storage part isn't very clear in the wiki, I want to know If I can store templates by name as html files in some folder and retrieve them also by name.
artf
Hi @Eman-Shaaban, GrapesJS is just a client-side library and doesn't deal with back-end stuff. The remote storage just sends data to some server-side script, then it's up to handle it (you can store it inside a file or maybe in some DB tab...
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.