I am not new to Javascript but when I try the example: I get a blank page. That is with adding the CSS and Javascript library. Any suggestions on getting this up and running? Looks like an outstanding project!
maxtacco
I suggest you clone one of the examples using Git and run it using NPM commands included in the project. In your example above I would check the paths to grapes.min.css and grapes.min.js files - make sure you do not get 404 - Not found.
artf
Try with this instead
ekennedy80
Okay, I am building a CMS using JSF 2.2 and I cannot get a simple example working in the web application. But if I test an example using a simple file and browser I can get it to work. Has anyone had any experience using grapsejs with JSF?...
is there way to destroy editor, I need to add button on page if user click, open page in editor and on save close editor and remove any reference of it.
artf
Check here https://github.com/artf/grapesjs/issues/849
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.
Hey Guys, first thank you very much for your work, this project seems really promising. I have a few question for a website i'm building. In my case i don't need a complete Page Builder, but only a help for the end user to create/edit pages and posts contents visually, so some parts of the page should be visible in th...
artf
So, first things first, how can i include my own stylesheet in the iframe of the editor? You can inject styles and javascripts on init via canvas options My second problem is that i have some parts of my site that i need to show in the edi...
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.
WARNING READ and FOLLOW next 5 steps, then REMOVE them before posting the issueFollow CONTRIBUTING Guidelines https://github.com/artf/grapesjs/blob/master/CONTRIBUTING.mdUse the GitHub Issues EXCLUSIVELY for BUGS, FEATURE REQUESTS or QUESTIONS. Prefix the title of the issue with its context, eg. [Bug]: ....Do a quick...
rajatkumcom
I have done changes in grapes.js file which is not recommended var typeJson = this.get('contentTypeJson'); var typeJson = false; Resolved issue.
rajatkumcom
Getting this error ( SyntaxError: Unexpected token < in JSON at position 0 ) when trying to use:- storageManager: { type: 'remote', autosave: false, setStepsBeforeSave: 1, contentTypeJson: true, params: {}, storeComponents: true, storeStyl...
v8jupiter
Can you give more details?Your have this error when trying to load template from 'http://localhost/grapesjs/fileLoad.php'?Or you have error in init moment. Can you show full initialization of editor? I think your problem in this endpoint h...
Hi Team, We started exploring the Grapejs for one of our requirements fitment, is there possibility to introduce template language (like mustache syntax) along with this layout builder ? Thanks, Rathish
artf
Hi @rathish there is no intention to introduce such a functionality in the core but you definitely might be able to compile your templates just before passing them to grapesjs
rathish
Thanks artf, in our usecase we are planning to generate templated html from grapejs and then compiled in the runtime to generate required html files. I hope we can introduce custom plugins which can embed templates syntax
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.
I really like GrapesJS functionality but I'm a little disappointed with the lack of options when it comes to the editor, it looks good by itself but sometimes I need something more customized and I couldn't figure it out yet. Basically I need to hide the top panel, to change between "Blocks" and "Styles", I'd like to...
ryandeba
Hi @lorrandavid It's definitely possible to custom the theme of GrapesJS - you just need to write some the appropriate CSS to fit you needs. Here's a quick, hacky jsfiddle that demonstrates a couple of the items you mentioned: https://jsfi...
lorrandavid
@ryandeba I'm getting an error for TypeError: t.Panels.getButton(...) is null on line grapesjs-preset-newsletter:15:54147 which is: How can I solve it? I don't have any 'options' panel
lorrandavid
Currently I solved it like this: But I think it's not ideal, because it first shows the editor with all the panels them they get removed, is there a way to improve it?
Hi, we are tring to integrate your grapejs in an existing web application. We need to load and store data remotely adding some POST params (different in the load call and in the push call). Is it possible? In the case that all works well, can you support us for some customization?
v8jupiter
Please read maybe it wil help -> https://github.com/artf/grapesjs/issues/597
artf
@AlessandroMagri you basically set custom parameters in the storageManager configuration: Those are used for both the load and store requests, if you want you can find here #831 how to customize the already initiliazed storage manager
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.
The style manager seems to have a nice solution for when no component is selected by showing a "Select an element before using Style Manager" message, but the trait manager does not. This is pretty easily seen in the newsletter demo:Select any componentToggling between the style and trait panel works as expectedDelete...
artf
Should there be a message in the traits panel similar to the one in the styles panel? I'm would be glad to add such a functionality
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 ! I want to set tagName tr for all components(or specific component in use). Is there any predefined function to set tagName ?
artf
You can change the tagName of any component, at any moment, in this way: You can also change it at the component level, in this way any new one of its type will get it by definition. Read more about Components and how to extend them. Basic...
byeonggukang
works great! thanks @artf Is there any way to change wrapper's tagName also?
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.
I've followed the docs and have been able to upload images. When I drag an image block (using the newsletter preset) and select an image from the assets it adds a blank image to the canvas. I need to double click the image on the canvas and select the image again for it to show. Is there something I need to do to wire...
artf
... it adds a blank image to the canvas Can't reproduce it. Any live demo? Or at least a screencast/gif?
hillelcoren
I put together a basic sample and it works, it must be a problem with my code.
hillelcoren
Sorry to take up your time! If anyone else sees this problem in my case it was happening because I was using the canvas:drop event to adjust the HTML (to perform a mail merge). I've fixed it by checking if the user is dropping an image in...