GrapesJS Issues

3,464 parsed GitHub issues β€” 370 solved Β· 90 open. Search, filter and explore battle-tested answers.

1,399 issues found

πŸ” outdated
#1665Dec 17, 2018by ahmedeldeeb25-zz2 answers
0 reactions

Jquery selector in traits Actions

I have created a custom component and and select to its traits, this select cotains multiple URLs. in doStuff() method i've displayed the select value and i want to set it in my component html. I used jquery & pure JS to do that but this way didn't work, it can't read any selector in doStuff()

artf

Ahmed... please... read and be compliant to the issue template.

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.

#1664Dec 17, 2018by frasza2 answers
0 reactions

Span element gets stripped from editing

We have added button on RTE toolbar so that we can put selected text inside <span> Now, that functionality worked perfectly fine in our previously installed version (0.14.21) but now we updated to 0.14.43 and when I select the text and want to put it in <span> it does it in code, but RTE doesn't make it as element unt...

frasza

Okay, so we have found a solution by adding data-gjs-type='span' to a span element so the code becomes:

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.

#1662Dec 14, 2018by Deepak8132 answers
0 reactions

How we can reinitialise editor

Hi @artf, Hope you are doing good. How we can reinitialise the editor with json data. We want to reinitialise editor with some of the previous saved json data so that we can compare that. Is there any option so that we can change the content of editor based on json data without reloading the page ? All the Undo, Redo...

artf

I think this should be enough

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.

#1661Dec 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.

#1660Dec 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.

#1659Dec 14, 2018by YohanGuerin2 answers
1 reactions

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.

#1658Dec 13, 2018by christopherserrao053 answers
0 reactions

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

#1657Dec 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.

#1655Dec 12, 2018by alfaalex812 answers
1 reactions

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.

#1654Dec 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.

Browse all topics