GrapesJS Issues

Search parsed GitHub issues, see highlighted answers, and open the original discussion when needed.

3464 issues found

#1289July 16, 2018by acamenhas2 answers
0 reactions

data-gjs-custom-name question

I've created a simple block content with a custom data-gjs-custom-name = "test". When i save the page i cant see those attributes on the generated HTML. Then, when i load that HTML, those custom components appears as BOX. Is there any way to keep those attributes?

artf

No, those attributes are only used for the import. Please, learn how to store correctly your templates https://grapesjs.com/docs/modules/Storage.html#store-and-load-templates

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.

#1288July 16, 2018by panagulis723 answers
0 reactions

Cannot read property 'body' of null - Angular

Hi, I have a list of email template (page 'templates') and there is a button that open the edit (page 'templates/edit/:templateId'. All works fine, but when I go back into the templates' list I get this error in the console: core.js:1624 ERROR TypeError: Cannot read property 'body' of null at Object.getBody (grapes.mi...

artf

Do you use the latest version? The error appears only in the templates list? So, does it work when you click back to the edit page?

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

cmoutafidis

I sometimes get the same error whenever I hit ctrl+c. Grapesjs is integrated with angularjs.

#1286July 15, 2018by Barahten3 answers
0 reactions

[Questions]: Download default assets in manager on init

I'm trying to implement an example as in a demo, namely: when clicking on a background image installation, a window pops up offering you to download files or select from already downloaded ones. Uploading to the server I successfully implemented, the files are loaded, saved in the desired folder, after they appear in...

artf

Hi @Barahten please try to provide a live demo for your issues, just can't help you without seeing how you set up the editor.

Barahten

@artf, work on real server http://gjs.barahten.com/ Pen - https://codepen.io/barahten/pen/QBygdY The script works a little strangely. On the local server it works by uploading files to the folder but does not work on adding to the manager,...

artf

Regarding the first pointBut when updating the page and repeating all the above manipulations, the asset manager (the one on the left is empty). First of all, update the library, 0.12.17 is too much outdated actually BTW, just to give you...

#1285July 15, 2018by rdtomar222 answers
0 reactions

[Questions]: How suitable grapeJs for custom webPages for every user in an web app.

Thanks for such an awesome tool. I am looking for a library which can support my user with custom personalised web pages under a single app. How suitable is grapeJS for such case where I need to store a lot of user template data? Also in view of dataBases what should how and what I should be storing HTML/Json? Thanks.

artf

I think GrapesJS fits perfectly your needs, just read about the Storage to get an idea on how you would work

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.

#1284July 15, 2018by ORESoftware3 answers
0 reactions

super confused - how to launch the GUI tool?

Sorry I am very confused - I heard about this tool recently - it looks like it can be used as a GUI tool. But in the downloads section of the readme it says: npm i grapejs etc. those download techniques seem to be for installing a library, not for downloading/launching a GUI tool. How do we download and install the GU...

artf

Download the library (eg. https://unpkg.com/grapesjs), include it inside your html page and launch it https://github.com/artf/grapesjs#usage

ORESoftware

If that's the case - why can't we just clone a Git repo and have everything set up for us? Why do I have to create the HTML manually, to get started?

artf

Because GrapesJS is supposed to be a framework, not a ready to use application https://grapesjs.com/docs/#what-is-grapesjs

#1283July 13, 2018by NorthstarTech2 answers
0 reactions

Web Fonts in grapesJS (Austin Light)

I want to add the web fonts like "Austin Light" etc in Typography grapesJS Editor. How can I achieve this? Help Required.

artf

Please, try to search for issues before opening a new one https://github.com/artf/grapesjs/issues/1215 https://github.com/artf/grapesjs/issues/857

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.

#1282July 13, 2018by SalesFeed3 answers
0 reactions

[Bug]: avoidInlineStyle true breaks saving properties

Case:Set avoidInlineStyle to trueDrag an image to the canvas, set it's width to 100% via Layout > WidthSave the canvasReload the canvas Expected: Image to be 100% width Actual result: The image is back to it's original size

artf

Just tried this https://jsfiddle.net/szLp8h4n/235/ and works as expected (uses the default local storage) Are you sure you're saving properly?

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.

#1281July 13, 2018by tomichal3 answers
0 reactions

What is the proper way to initialize the editor with an already existing HTML and CSS content?

Hi @artf , it seems that in order to initialise an instance of the editor with an already existing CSS you can either give the editor "gjsstyles" or "gjscss". Similarly for HTML it's either "gjscomponents" or "gjshtml". What is the proper way? So far the way I've been doing this is to have this code run just before ru...

artf

Am I doing this right? Not really. You have to setup the remote storage

tomichal

Thanks @artf !

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.

#1280July 12, 2018by HakuTheWolfSpirit3 answers
0 reactions

Rendering third party components in grapessj editor

Hello, we'd like to render third party controls. This is a general question and we wan't to know whether we are going into the right direction. To render the controls we are required to use a third party technology (Vue, React, or similar frameworks). Both of the frameworks have one common problem: they are lagging th...

artf

Vue compiles at runtime if you use the version with compiler. Exactly like this component https://github.com/alexjoverm/v-runtime-template As second question I'd like to know whether it is possible to hook onto events from the editor from...

HakuTheWolfSpirit

Hi, thanks for the answer.Vue compiles at runtime if you use the version with compiler. Exactly like this component https://github.com/alexjoverm/v-runtime-template The problem with Vue is that there is not really a method that allows me t...

artf

The problem with Vue is that there is not really a method that allows me to put a string in as parameter and get html as an output. I have asked this question on StackOverflow and hopefully I will get an answer in near time. yeah but you c...

#1278July 12, 2018by guyzamir2 answers
0 reactions

Use with php & mysql

Hello. Can this be used like a regular wysiwyg editor to save the data to a database and create pages dynamically to a website?

artf

Sure

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.