GrapesJS Issues

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

3464 issues found

#398October 10, 2017by 2uncle-code2 answers
0 reactions

the scripts should put at bottom in canvasview for better loading speed,isn't it? :)

artf

Hi @vtista the purpose of this part is to load scripts before any other component as one of them might need them as a dependency. Basically, it's trying to simulate the <head> synchronous loading

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.

#397October 9, 2017by HarshOB3 answers
1 reactions

Change value of Traits on the base of previous Traits.

Hello I am using two dropdowns in traits. On the selected value of the First drop down I am going to call an API and set data into another dropdown. I got data on console but that is not loading on the page. I have to refresh the page to view the changes. What should I do to get immediate change on the page? Here is m...

artf

I meant "I have to add" 😬

artf

Have to add a listener for options change

HarshOB

And How can I add a listener for option change?

#396October 9, 2017by mekamleshk1 answer
0 reactions

Issue #393 not resolved

https://github.com/artf/grapesjs/issues/393

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.

#395October 9, 2017by suchithmahadi2 answers
0 reactions

How to call a function which is outside the component in script function of component.

Please help in solving the below issue. How to call a function which is outside the component in script function of component. ex: demo.myFunction function should be called in component script, but script is not able to recognize demo variable. Where as demo.myFunction can be called in init function. grapesjs.plugins....

artf

You'll find the answer here #358

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.

#394October 9, 2017by daniel-farina3 answers
1 reactions

Text: New div is created every time I hit enter instead of creating a </br>

Hi @artf Is there a reason why when inserting text a new div is created for every break instead of a standard </br> Is it possible to disable this behavior and make a </br> instead. I know this works if I hit the shift + enter but I would like for it to be the default option. Thank you

artf

Hi @daniel-farina this is a default behavior in WebKit browsers, here you can find current solutions https://stackoverflow.com/questions/18552336/prevent-contenteditable-adding-div-on-enter-chrome I actually started rewriting the current R...

daniel-farina

Thank you for the update and information. I'll look into it.

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.

#393October 8, 2017by mekamleshk3 answers
0 reactions

Two little things

Hi @artf @arthuralmeidap @sonnylloyd @cmcintosh @daniel-farina Thank you so much for developing such a awesome framework. I tried to achieve almost all the functionalities in grapesjs preset newsletter. Just need some help on this two little things : 1) I am able to upload and load images into the asset manager. The t...

artf

I am able to upload and load images into the asset manager. The thing I am missing on is after uploading the image, it is not reflected immediately in the asset manager image list. Here is the problem In https://github.com/artf/grapesjs/bl...

mekamleshk

Hi @artf Not sure about using https://github.com/artf/grapesjs-preset-newsletter/blob/master/src/buttons.js#L36-L37 I am using the compressed version: <script src="js/grapes.min.js"></script> <script src="js/grapesjs-preset-newsletter.min....

artf

The Add button works exactly as expected, it shouldn't upload/download stuff. If you need custom behaviors add your UIWhy do I have to refresh the page every time. Is it possible to load the images directly after uploading I've already tol...

#392October 8, 2017by daniel-farina3 answers
2 reactions

Define selected class.

Hello @artf , Is there a way to automatically select the class that is created on elements with custom styles. I'm currently trying to dynamically update classes with a grid system and it's working fine but the auto selection of all classes is creating issues. I've been looking at the code for hours trying to figure t...

daniel-farina

Update: Ok I figured out that I can make them all unselect by default by changing src/selector_manager/model/Selector.js and this pretty much solves all my problems as when I change the background color of the block, it will update only c8...

artf

You can access selectors from the model or for example, disable them all from its module

daniel-farina

fyi changing this to false will make your build to fail due to this in the test script: I just commented this out here: test/specs/selectormanager/model/SelectorModels.js and this test/specs/csscomposer/e2e/CssComposer.js line 129

#391October 7, 2017by tomichal3 answers
7 reactions

Namespace CSS?

Hi there, Is there a way to setup the grapesjs editor such that the CSS generated for the HTML content is namespaced? In other words, how to avoid the style rules defined for the content created/edited in the editor to leak out to the rest of the website page? In the case of my website the user can edit a large part o...

danfitz36

do you think you could just prefix all class names generated by grapejs? if instead of .row you use .grape-row or whatever (i'd probably make the prefix a variable), you'll mostly get the effect that @tomichal is after.

artf

Actually, you can add a listener on new selectors and add a prefix there

devmohitagarwal

HI, People looking to sandbox, prefix the exported CSS can give this a try, we had the same use case and took the sass approach. To do so, I used sass.js (https://github.com/medialize/sass.js/) Steps:enclose the cssString with your custom...

#390October 6, 2017by Geczy2 answers
0 reactions

Make font-awesome a peerDependency

Font-awesome is a big library that i'm already loading. If I load grapesjs, it will load FA twice. If you make FA a peer-dependency then this will fix that problem

Geczy

I see you kind of have this on the roadmap https://github.com/artf/grapesjs/issues/74 to replace with svg's

artf

Yeap, I should definitely remove font-awesome from the core