GrapesJS Issues

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

3464 issues found

#1661December 14, 2018by Konger19683 answers
0 reactions

I've created html table and cannot drag new elements to table cells

Hello. if I create html table with next block of code, everything works, I'm able to drop a Quote, for example, to any cell: But next code produces html table with no possibility to drop new element into a cell. What am I doing wrong?

artf

Hi Konstantin, by doing this this.el.innerHTML = template; you're basically removing components by replacing them with a static HTML. Each component, once inserted inside the canvas has a Model (let's say, the component's JSON structure) b...

Konger1968

Thanks.

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.

#1660December 14, 2018by AkibDeraiya1232 answers
0 reactions

Content will automatically removed while edit in editor

Hello @artf I am facing an issue with grapes.js while editing any textual content. I am using grapes.js Version 0.14.37 with angular 1.6.1. While i am trying to edit some text in editor and then click at other space it will be hide/remove the content whatever i tried to edit. Here is the screen cast video whatever i f...

artf

Before opening an issue be sure to have the latest version of grapesjs (0.14.37 doesn't even exist as a release...) in case the issue is still there, create a reproducible demo, thanks

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.

#1659December 14, 2018by YohanGuerin2 answers
1 reactions

[Question] How to upload PDF and others files - GrapesJS

Hi @artf, I started using your web builder a few days ago and I found it very well done ! I was able to customize it in my own way but I have one question / problem. I want to know if there is a possibility to upload any file like PDF or others ? I used AssetManager to upload some images but I don't find any way to do...

artf

You can create your custom asset types https://grapesjs.com/docs/modules/Assets.html

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.

#1658December 13, 2018by christopherserrao053 answers
0 reactions

[BUG] Checkbox trait does not load as checked even when the trait value is true

Hi, I'm using Grapesjs version 0.14.33. I'm loading some components when the form loads and I have a component with a checkbox trait. When I load the component using editor.DomComponents.load, I'm loading the checkbox with the value true, which means that the trait should be rendered with the checkbox already checked....

artf

Update your grapesjs versionThe trait reads the value from the component, so place the initial value at the component level, not at the trait one

christopherserrao05

Hi Artf, Thanks for your reply. Can you please provide me a sample link, or if you could please update the jsfiddle, to explain what you mean by "place the initial value at the component level". Thanks

artf

I mean, when you add the checkbox element, put checked there <input data-gjs-editable="false" .... type="checkbox" ... checked/>

#1657December 13, 2018by ahmedeldeeb25-zz3 answers
0 reactions

render method is repeated for a custom Component

I have created a custom Component when I click on it to put it in the editor, the render method is repeated as long I still click on it, I want the render method to just work when i put the component in the editor

artf

Hi Ahmed, when you drag a component in the canvas a temporary one is created to check some functionality. If you need to skip something inside the render method you can check if it's temporary in this way

ahmedeldeeb25-zz

@artf thank you very much that's what i want

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.

#1655December 12, 2018by alfaalex812 answers
1 reactions

[Question] isComponent() is not invoked

I'm trying to make a plugin, but I have a problem with isComponent. My component does not call it whene the editor loading the code, this is the script. Where I'm wrong? index component block

artf

isComponent is used, inside the parser, when you add an HTML string and you don't declare explicitly its type (eg. <div data-gjs-type="my-custom-type">.. tells already the type so isComponent is not necessary). If you pass an object conten...

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.

#1654December 12, 2018by suresh52 answers
0 reactions

In React if we define as component, grapesjs component is not taking that component? Is there a way to achive this ?

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

artf

@suresh5 open the issue in a proper way, please.

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.

#1653December 12, 2018by suresh51 answer
0 reactions

Is there any way to store edited template from grapesjs as .html in local folder ?

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

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.

#1652December 12, 2018by suresh53 answers
2 reactions

In React How to give local css path for grapesjs editor ?

As I am working in Reactjs with grapesjs, I want to load html template in to grapesjs.I am having separate css folder in my local react application ? How to load that css when grapesks editor initializing

cjpollard

suresh5

where to store that css file ? i mean path to keep that file in react

cjpollard

Depends how you're bundling and serving your pages. For example, if you're serving a build folder, with the CSS in a subfolder there, then use '/css/style.css'.

#1651December 12, 2018by alu01008248102 answers
0 reactions

How create a new modal dialog like the icons one?

Hi ! I would like create a new modal that contains templates for what users can use them later and add them to canvas/editor. I would like to do something similar to this. This is an example of https://grapedrop.com/ <img width="780" alt="captura de pantalla 2018-12-12 a las 9 09 10" src="https://user-images.githubuse...

artf

You can do it by creating new asset types https://grapesjs.com/docs/modules/Assets.html#customization

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.