In my machine grapesjs is unstable. Generally at first request throws below error. After refreshing one or two times, it works. Bug exists in all versions I used.Uncaught TypeError: Cannot read property 'componentTypes' of undefined at F.i.renderChildren (grapes.min.js:2) at F.i.render (grapes.min.js:2) at F.i.addToCo...
ateshuseyin
I found the problem. One of my chrome extension (I think it is Backbone Inspector) causes the problem. Issue can be closed
ateshuseyin
Another error is;components.js:169 Uncaught TypeError: Cannot read property 'defaultTypes' of undefined at child.renderChildren (components.js:169) at child.render (components.js:212) at child.addToCollection (ComponentsView.js:65) at Comp...
artf
Weird, never got those issues, but if you see defaultTypes in components.js you're definitely working with an old version of grapesjs
All I did was import HTML, except I can't modify the text in the HTML I can't type anything or remove any text
Geczy
This is the HTML that I am using https://pastebin.com/wNseLeqh is it because text is not wrapped in <p> ?
artf
This happens because td component is not editable, so the easiest solution would be, as you already get it, to wrap it inside some other component. Otherwise, you should extend the TableCell
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 using a custom module to save/load a template with a service like this: Save is a different module and works just fine. The problem is with the Load() call. For some reason, Grapes performs a POST action to localhost:8000/templates/5 getting a 405 - Method not allowed from the backend. Fetch call in RemoteStorage...
santiph
Solved
suresh5
hi can you share me the json when u are sending to load 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.
I downloaded the git repo but was only able to find grapes.min.js. I really want to dig into the code some more and get a better understanding of how all the files are related to each other but I'm not seeing the unminified version anywhere. Could someone point me to where it is in the repo or if not, could the unmini...
ateshuseyin
There is no unminified version of grapesjs. I think this is a necessity. Until @artf add unminified version checkout the project then link grapesjs into your project. See: https://docs.npmjs.com/cli/link
artf
Hi @cindygao93 if you want to dig into the code you just have to check /src folder
z-vr
@artf /src is a good start, but does not allow to do
Hello it's possible to send autosave data with gjs-get-inlined-html command ??
artf
No, there is no option to do so, but you can try to override the editor.DomComponets.store method and implement there your logic (try to understand how the current method works)
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 sorry to be a pain i really didn't want to open a issue ticket but i have been stuck for days trying to achieve my end goal i have made a simple plugin that adds icon support (font awsom) so i have a components.js a block.js and a main.js with some configs i have managed to get the onchange working, however i...
artf
Hi @sonnylloyd I think the problem is that you're not reflecting correctly the icon property. Try with this
sonnylloyd
Thanks @artf i have been playing with your suggestion but with no luck. again sorry for being a pain heres the updated component.js
artf
@sonnylloyd check better my code, you've changed init() inside the model which was ok in your previous code. As you see, under the ...model, you only have to change the updateIcons()
Hello, First of all, I want to thank you for this amazing project! I have few a questions regarding the editor, and more precisely the newsletter preset:I want to add a button in the block manager which can give a quick access to change the background of the body (without going to the component tree).Furthermore, how...
Geczy
Here's how I remove buttons
asvine-p
@Geczy, thanks but the set("active", boolean) method only switches the highlight mode of the button. Actually It doesn't remove it.
artf
Hi @asvine-pI want to add a button in the block manager which can give a quick access to change the background of the body (without going to the component tree). Once the editor is loaded you can add/remove stuff with JS (your button will...
I am using this custom CSS: Even without my CSS, the RTE toolbar is missing from TEXT The toolbar seems to keep adding to the top left as if it has no styling, instead of being added to where my cursor is
artf
Can you try with the latest version? (your RTE code is the old one)
Geczy
Thanks sorry
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.