GrapesJS Issues

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

3464 issues found

#431October 17, 2017by bobblkabb3 answers
0 reactions

Not compatible with your operating system or architecture

Hi, couldn't install grapesjs on Ubuntu 16.04:

bobblkabb

npm-debug.log

artf

just follow these instructions (the issue is with node-sass not grapesjs itself)

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.

#430October 17, 2017by mediaboost2 answers
0 reactions

storageManager remote + autosave + gjs-get-inlined-html

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.

#429October 17, 2017by sonnylloyd3 answers
0 reactions

custom component save

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()

#428October 17, 2017by asvine-p3 answers
0 reactions

Change the background of the body

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

#427October 16, 2017by Geczy3 answers
0 reactions

rte toolbar is missing

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.

#426October 16, 2017by mekamleshk3 answers
0 reactions

After image Upload immediately show in the asset Manager

@ artf I tried my best, but still it doesn't seem to work Can you please help me in this. Once I upload a image I don't want to refresh the page because I will loose the newsletter template I have created. Is there any way I get load the images into the asset manager immediately after the images are uploaded. Would ap...

artf

??? we're already talking about this here and YOU even said that you were able to do so, so... what is the point of opening another issue?!?

mekamleshk

Hi @artf , I was able to only upload and delete files from the server, it was not adding images directly to the asset manager. I rechecked all the asset manager issues and found what I was doing wrong, now it works fine. Thanks alot :) :+1:

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.

#425October 16, 2017by umeshsingh1313 answers
0 reactions

How to render external js file in our custom plugins

Hello, I am creating a slider plugins but its not working. because. I am not able to find how i can add or use external scripts and css files in our plugins? Can you please help me here.

artf

https://github.com/artf/grapesjs/wiki/Components-&-JS

umeshsingh131

I used this but this is not working. Can you send me an example regarding this. In which plugin used some custom javascript function and used external javascript file regarding that plugins

artf

I used this but this is not working Provide a live example (using services like jsfiddle/codesandbox) of what you've done so we can see what is not working

#424October 16, 2017by aryeharmon3 answers
0 reactions

custom competent <template> missing inner html when creating a block with it

you gave me a fix in #244 but this is no longer working

artf

Hey @aryeharmon I just used this in the demo (try it by yourself in console) and importing <div><template><div>SOME TEXT</div></template></div> works just as expected.

aryeharmon

OK so i see what the issue is, apparently when i add: to html the existing elements on page do not take effect. only newly added dom elements. for example i already have a template tag on page when load, i will not get the properties. but...

aryeharmon

btw, the editor.render(); is after the register of domc.addType

#423October 16, 2017by JFOC2 answers
0 reactions

Highlighting the component

Hi, Any idea how to highlight the component in the container when hover in the layer manager ? I think this is like reverse of click component in the container then highlight the component in the layer manager. Thank you

artf

Currently, it's not so easy to achieve but definitely, it'd be cool to add and have some kind of API for this behaviour. Thanks for the suggestion

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.

#422October 15, 2017by cmcintosh3 answers
8 reactions

Prevent editing some components

I would like to prevent users from editing the internal components of specific components. IE lets say I have an element called Drupal-Block I want to prevent the users from editing the ... html inside... bit

artf

Yeah, @MichaelKlemersson is right currently you have to set them manually on any element. Another trick would be to update all children via model But what I think would be the best it's some kind of property which propagates (suggestions f...

cmcintosh

Yes i think that the propagation idea is great. To be clear the reason im looking for this is im building out a module for Drupal 8 that will allow creating themes via the GrapeJS tool. In Drupal you have elements called Blocks, and my tho...

artf

An example you can use in the demoSelect an element (eg. some section) Execute this in console