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