GrapesJS Issues

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

3464 issues found

#886February 20, 2018by commax892 answers
0 reactions

[HELP WANTED]: questions about some customization.

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.

#885February 20, 2018by kundarmah2 answers
0 reactions

[Help Wanted]: Auto Stripping Tags with Variables?

When the custom block is added, it will strip HTML tags that contains the curly braces. The anchor link will be removed. Only the div will be rendered on the canvas. Is there a way that it will ignore the variables?

artf

Just tested your code with the public demo, everything works as expected Try to check also the block content via the inspector console as it might also be some server-side effect

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.

#884February 19, 2018by chiqui3d2 answers
0 reactions

Demo with the new panel system

Hello, You could update the demo and put it back but with the new panel system, I tried to do it based on your latest release, and I couldn't, lol.

artf

and I couldn't Can you provide an example so I can see what is wrong :)

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.

#882February 17, 2018by rasdiv2 answers
0 reactions

Hosting GrapeJS

Is it possible to host GrapeJS on iPage?

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.

#880February 16, 2018by ancanot2 answers
0 reactions

Custom block with outside plugin in Grapesjs

I want to integrate Image viewer jquery plugin in grapesjs new custom block. I have loaded jQuery first. ImageViewer Plugin url - https://www.jqueryscript.net/gallery/jQuery-Plugin-For-Product-Viewer-with-Image-Hover-Zoom-BZoom.html The problem is that, when I create component, plugin connected (I give plugin js in in...

artf

I can not handle double click event for open modal and changing image (in double click event working ImageViewer click event) This depends on what the plugin does with the DOM. The double-click event is binded to you images but if images a...

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.

#879February 16, 2018by rajatkumcom3 answers
1 reactions

SyntaxError: Unexpected token < in JSON at position 0 in storageManager, contentTypeJson: true,

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

#878February 16, 2018by rathish3 answers
0 reactions

[ Question ] Template Language Support

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.

#877February 16, 2018by eddyjl0773 answers
0 reactions

Liquid integration

Would it be possible to include Liquid syntax highlight in the HTML?

maxtacco

Hi, if you are talking about HTML displayed when exporting a template then unfortunately there is no way to customize it using the default export template command: https://github.com/artf/grapesjs/blob/dev/src/commands/view/ExportTemplate....

maxtacco

Sorry, you were talking about the actual language highlighting. I'm not 100% sure about that but probably you need to customize CodeMirror as well. So, I would still take a look at export tempalte command.

artf

@eddyjl077 you can create a new command and initialize another codemirror instance with your options (eg. #209)

#876February 16, 2018by maxtacco2 answers
1 reactions

[Feature] Pass store manager's response to editor's store callback

Hi @artf, We have a need to get a response of the store manager when calling editor.store() method with a callback (we return generated template id in this case from the server). I'm pretty sure you have it implemented for editor.load() method. I think the change is pretty simple in /src/editor/model/Editor.js Let me...

maxtacco

Hi @artf, I created a pull request for this issue - https://github.com/artf/grapesjs/pull/881. Tested locally - works as expected.

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.

#875February 15, 2018by lorrandavid3 answers
1 reactions

[Question]: Is it possible to customize the editor completely?

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?