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