GrapesJS Issues

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

95 issues found

#944March 12, 2018by suthars2 answers
0 reactions

Drag and drop blocks is not working in IE Browser

Hi, There is some bug related to "Drag and drop functionality is not working in IE Browser ", i have tried to find out the solution regarding this but as per documentation there is no finite solution of this issue Also there is no method to reinitialize the grapes editor. i think it has few browser compatibility issue...

artf

Follow the issue template 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.

#926March 5, 2018by NealWalters3 answers
0 reactions

BUGS:Documentation/Clarity

If grapejs requires NodeJS, the doc/wiki should say that clearly upfront somewhere (i.e. list major dependencies and what type of server is needed to run it). You mention it runs in a CMS, but don't state that it will create a full page and can or cannot run outside of a CMS. Question: If it runs with NodeJS - will it...

artf

If grapejs requires NodeJS, the doc/wiki should say that clearly upfront somewhere Indeed it doesn't... you need nodejs just for the development purposeYou mention it runs in a CMS, but don't state that it will create a full page and can o...

NealWalters

Thanks Art. Okay - let's re-read this: "GrapesJS was designed to be used inside a CMS to speed up the creation of dynamic templates." That could mean I need a CMS then I paste GrapeJS into it; or it could mean it was meant for a person to...

artf

Yeah it's not only about CMS but a general purpose use. Inside grapes.min.js you will get everything you need, NodeJS is just for a correct development server (testing, merging dependencies, etc..)

#922March 2, 2018by mbleverage3 answers
0 reactions

QUESTION: Adding default styling to a component

I have been working on integrating grapesjs into a new development I'm working on. I have had much success with the documentation and wiki forum but am running into a few issues I'm hoping someone out there can help me with. I am working with a mobile view only, I have set the default device to mobile and hidden the o...

artf

Your change on the block doesn't work because you don't change the actual component (just the block's property) With cssComposer instead, by default, selectorManager accepts classes An easier way to add custom CSS might be this one But be...

mbleverage

Thank you! I was able to get that working with: protectedCss: 'img {max-width:100%;}', I have the same issue with videos and iframes (for youtube) being dropped onto the template larger than the screen size and the protectedCss solution di...

artf

protectedCss is loaded so the CSS is here, if it doesn't work probably your CSS technique is not correct

#886February 20, 2018by commax892 answers
0 reactions

[HELP WANTED]: questions about some customization.

Hey Guys, first thank you very much for your work, this project seems really promising. I have a few question for a website i'm building. In my case i don't need a complete Page Builder, but only a help for the end user to create/edit pages and posts contents visually, so some parts of the page should be visible in th...

artf

So, first things first, how can i include my own stylesheet in the iframe of the editor? You can inject styles and javascripts on init via canvas options My second problem is that i have some parts of my site that i need to show in the edi...

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.

#857February 11, 2018by webnoob3 answers
3 reactions

[Question]: How do I add a custom font in the Typography | Font dropdown?

Hi, First off, this is what I've been looking for for a long time so thanks for your efforts. Next, I'd like to add a font in the Typography | Dropdown list. How do I go about adding one? Note: I've seen the posts where you suggest adding a new stylesheet but I want it to only apply as per the Typography options. I al...

IceCrystal0k

This is how i added new fonts to the style manager: Call this functions either after initialize, or on editor.on('load', ()=> { .... addFonts() ... }) if you use a preset like newsletter preset that alters the style manager after load. als...

artf

Hi @webnoob currently the only way to do so is to add it via the initialization object. Here is the snippet from the demo https://github.com/artf/grapesjs/blob/gh-pages/demo.html#L1045-L1062 As you see can see I don't specify any font fami...

webnoob

Thanks for this. Based on what you showed me above, I've used the StyleManager to add the extra font in, like so: I suppose using this method I would need to import the actual font via a stylesheet into the editor for it to actually work o...

#838February 5, 2018by josefph3 answers
4 reactions

[QUESTION] How do I save the images to database?

Please do bare with me but it's really hard to understand the documentation. Can you guys help me do do this?

JulyanoF

@pranzikkin @pranzikkin it is an array of files:$FILES['files']You can debug and see the response on browser's network (console).As it is passing a single file of each time, the file is passing at the first position, so you can take the na...

arthuralmeidap

@pranzikkin put the http\https for the url; something like http://<youraddress>

josefph

@JulyanoF thank you for the great help. got it working now. @arthuralmeidap thank you for the help. got it working now.

#822January 30, 2018by josefph3 answers
0 reactions

[QUESTION] How to get the html and css code in view code tool?

or how to get all the html code and css so that I could save it in my database. Or there is already a functionality in the documentation? your help will be much appreciated :)

josefph

Sorry for this post. I was only able to look at the Open Issues not knowing that there are closed issues. I was able to know that I could use editor.getHtml() and editor.getCss() which I could just save right away in my database to save my...

artf

@pranzikkin you can set up a remote storage #778 which will store your data automatically

josefph

what do i put in UrlStore?

#793January 24, 2018by chiqui3d2 answers
0 reactions

Edit the title and view code icon

Hello, I would like to know if I can only edit the icon and title of the code command. Also another doubt, is that I'm starting and I'm making a mess when it comes to searching the documentation, by chance you don't have an image of the publisher that says it's everything to identify it, faster and know how to edit so...

chiqui3d

Solved with removeButton

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.

#792January 24, 2018by alvim3 answers
0 reactions

Script property using function don't work with blocks

In Components & JS docs there's this example: This works perfectly. But I couldn't use a function instead of a string in script, as is said it's supported like this example: It won't happen anything. The documentation isn't very clear about using scripts in blocks or components.

artf

Find where is the issue, it will be fixed in the next release

chiqui3d

@artf These changes when they will be published?

artf

@chiqui3d should be fixed

#769January 17, 2018by gordon-matt3 answers
0 reactions

Need further info to create backend for Asset Manager

I'm trying to figure out how to write a backend (in ASP.NET Core) for the Asset Manager. I've looked at a few of the Wiki pages, but still a bit confused. What I'd really like is info about how to show existing assets, upload new ones, delete existing ones, etc. I did see that I can upload by using an upload endpoint...

artf

Hi @gordon-matt, you manage assets with Asset API and its events, the remote part is up to you

gordon-matt

OK I think I see how it works. I'll give that a try, 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.