GrapesJS Issues

3,464 parsed GitHub issues โ€” 370 solved ยท 90 open. Search, filter and explore battle-tested answers.

829 issues found

๐Ÿ” question
#964March 20, 2018by anand-gopinath3 answers
0 reactions

Component properties configuration

@artf Sorry to post it again, It will be the continuation of #952 I just discussed the approach with MJML community and our conversation went like this https://github.com/mjmlio/mjml/issues/1063#issuecomment-374526777 Please have a look at this. So in order to avoid heavy load time and other MJML limitations and I hav...

anand-gopinath

@artf Can you please check this

artf

You should definitely use Custom Components, which is exactly the same way I do in grapesjs-mjml but, in your case, instead of relying on MJML renderer you would do it on your own logic

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.

#963March 19, 2018by theleoni2 answers
0 reactions

[Question] Create PHP endopoint to remote Storage Manager

Hello. I'm integrating GrapeJS with PHP (CodeIgniter) and I saw that there are others who do this. But I looked in the documentation and checked the bugs and questions and I still do not know how I can create the endopoint (upload and download) for the remote Storage Manager API connection. Is there any example I can...

artf

There are no rules on "how to create YOUR endpoints" just receive/send data from the server (check the devtool network inspector if you're not sure about the data). About the grapesjs configuration https://github.com/artf/grapesjs/wiki#sto...

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.

#957March 15, 2018by Coyote63 answers
0 reactions

[Question] Add custom attributes (data-) to assets/images on Upload/Selection

Hi, I am trying my best to find the proper/best way to do this, but I need to attach two custom HTML5 data tags to an image once it is selected from the Assets manager. Like so: I was hoping to be able to attach it when adding assets. Since I couldn't get that to work, I tried adding them on the component update event...

Coyote6

Found a solution, but surely there is a better one than this: Thanks.

artf

Your solution only updates the element inside the canvas and not its model (so in your final code you'll not gonna see them). When you update the model its element in view is updated automatically, eg.

Coyote6

Thanks! Would there be a feature in the future to add attributes during asset import? Just curious.

#956March 15, 2018by josefph2 answers
1 reactions

[QUESTION] How to load a new trait I added in a built-in component?

Hi guys I added a trait for my Link element which is a built-in component for gjs-blocks-basic. When I drag a new link component to the canvas it would show the trait in the component settings. But when I open the editor again it only shows the default traits and not the new one I added. Is there something that I shou...

josefph

this was an issue on my loading of my editor. after loading the editor with the components and styles correctly. it would also show the correct traits.

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.

#955March 15, 2018by alexroosenstein3 answers
1 reactions

[Question]: Find component associated with HTML element in iframe/visual editor.

Hi! I'm working on an implementation of GrapesJS where I can a drag&drop a piece of text from outside GrapesJS into an existing text element/component. I don't use the drag&drop functionality of GrapesJS for this, but the native (browser) drag&drop. I have some code working for this, a working drag & drop, and I can c...

artf

You can query the wrapper to get component models, eg. BTW it's not clear why the content is not updating while you say I can change the text in the visual editor (inside the iframe)

alexroosenstein

Thanks! I'll give it a go tomorrow. By the way, I update the text via JQuery using the text() function, but when I move the element to a different position the original text reappears again.

japo32

I had the same issue where I move the component with drag and drop. My solution was to add a text component inside my custom component. :)

#954March 15, 2018by nicolaskern3 answers
0 reactions

[Question] Drag&drop of button on demo has additional css attributes

Hi, On the newsletter demo, when drag&dropping a button, some additional css attributes are added to the <a>. It seems like they come from the <style> defined on the same page, but I can't get it working on my implementation. Is there any special configuration to put? Thanks, Nicolas

artf

The source of the demo is here https://github.com/artf/grapesjs/blob/gh-pages/demo-newsletter-editor.html

nicolaskern

Hi, I actually already have spent time analyzing the source code of the page, and there is - for me - no reason not to have the CSS put in the <a> when I drag&drop it. I couldn't find any override of the component, or anything saying to us...

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.

#951March 15, 2018by FrciSmrci3 answers
4 reactions

[QUESTION] Selection of custom components not possible from canvas.

Hey, I tried to figure this out by myself, but I'm feeling I'm going a little bit in circles. So I hope you will have some time to read this through and help me with the problem. I get an html template with multiple custom component tags => <custom-component-tag></custom-component-tag><custom-component-tag></custom-co...

FrciSmrci

@artf Thank you once again, will debug with this in mind. :)

artf

Hi, I'd say this is the same as #260 so your const value = document.createElement('div'); which is purely a DOM element, without a binded model, is blocking the editor to select its custom-component parent. Solution:

artf

The highlight is applied via gjs-comp-selected class which uses outline property, so check via inspector what is going on, probably you have some kind of reset property on them (eg. outline: none;)

#949March 14, 2018by subhasreemurugan1 answer
0 reactions

Can we create more than one modal in an grapesjs Editor

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.

#948March 14, 2018by phucphanJaneto2 answers
0 reactions

[Question] Grapejs import allow body class

I've imported full html string include head, body tag, and body tag has some classes. When I use editor.getHtml() => I can't get body tag. Can I get html string same import string?

artf

No, currently you should import stuff only from the body

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.

#945March 12, 2018by FoxXav2 answers
0 reactions

[QUESTION / FEATURE REQUESTS] : How to translate grapejs

Hi, I check the sources but it didn't seems to have a centralized language file (one per plugins per example) but multiple places where wording must be translated. Am I wrong ? I would like to be able to use english and french interfaces. So I would like to know how to translate grapejs (and it's plugins) to other lan...

artf

Hi @FoxXav you can check #26 about i18n and why currently I have no plans for 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.