GrapesJS Issues

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

3464 issues found

#1672December 20, 2018by TanSY993 answers
2 reactions

[Bug] Item drop duplicates after opening Layers Panel.

Hi i'm a novice posting an issue for the first time. Please let me know if you need any more information for the query. grapesjs version:0.14.48 Steps to reproduce: 1.Open the site click on the layers button 2.Return to the blocks button and drag and drop any block into the field. tested on:https://grapesjs.com/demo.h...

narendravaghela

@artf After upgrading to 0.14.48, it is throwing an error while loading data from remote source as well dragging new elements on canvas. And,

artf

https://github.com/artf/grapesjs/releases/tag/v0.14.49

artf

Ok thanks guys, I'll publish soon a new release with this hotfix

#1671December 19, 2018by SeongwoonHong2 answers
0 reactions

[Question] Adding html once canvas is cleared.

Hey Artur I'd like to add some default html code when users click clear button. for instance 1 section by default. for clear command, i'm doing what should i do after this..? Thank you

artf

editor.setComponents(<section>...</section>) Use the API Reference

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.

#1670December 19, 2018by ahmedeldeeb25-zz1 answer
0 reactions

Adding default Layout in grapejs

When I open the grapejs editor for the first time it appears as white-board. I need to add default HTML layout (columns) like in this photo, how can o do this?Update: that's done, I get HTML & CSS and put them in grapejs my initialize code, but I found another problem I can't now resize the columns or put components i...

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.

#1669December 18, 2018by SeongwoonHong3 answers
0 reactions

[Question] Custom link modal doesn't update the current text but add another text with link

Hello Artur, I'm trying to have a custom modal when clicked link button in RTE. but it doesn't convert selected text to link but what it does is it adds another text with link. Thank you..

SeongwoonHong

I'd like to add one more, inside onclick handler for btnLink, <a class="link" href="${inputEl.value}">${rte.selection()}</a> returns <a class="link" href="..."></a> the inner text is empty.. i have no idea how to approach this

artf

Change this: rte.insertHTML('<a class="link" href="${inputEl.value}">${rte.selection()}</a>'); to rte.insertHTML(linkInputEl.value);rte.selection() will be empty because the focus is lost, learn how to store the selection (eg. https://stac...

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.

#1668December 18, 2018by SeongwoonHong1 answer
0 reactions

[Question] How to keep focus for modal?

I've created my own modal for creating a link. but the modal doesn't know what is selected as the moment modal is opened and type in the input field in the modal i created, it loses focus from the editor.. is there any workaround..? Can you provide me an example of doing this..?

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.

#1667December 18, 2018by arachnosoft2 answers
2 reactions

Fullscreen: "exitFullscreen" leads to "Document not active" JS error in Chrome 71

Hi @artf , Thanks for all your work with grapesjs. I've been integrating your editor for a few months now, and I've just discovered that using the Fullscreen button in Chrome 71 leads to a "Document not active" error in the JavaScript console: grapes.min.js?v0.14.43:3 Uncaught (in promise) TypeError: Document not acti...

artf

Thanks @arachnosoft for the report, seems to be a new kind of error throw from the new Chrome 71. I'll fix it in the next release

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.

#1666December 17, 2018by SeongwoonHong2 answers
0 reactions

Newsletter preset doesn't support custom-code plugin..?

Hi Artur, I'm wondering if newsletter preset supports custom-code plugin. I've been using webpage preset before and custom-code plugin was working but since i moved to newsletter, custom-code plugin stopped working.. if it doesn't, how do i replicate the functionality..? Could you provide me with piece of code example...

artf

@SeongwoonHong this has nothing to do with the core of grapesjs, open this issue in the newsletter preset and provide a live example of your issue

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.

#1665December 17, 2018by ahmedeldeeb25-zz2 answers
0 reactions

Jquery selector in traits Actions

I have created a custom component and and select to its traits, this select cotains multiple URLs. in doStuff() method i've displayed the select value and i want to set it in my component html. I used jquery & pure JS to do that but this way didn't work, it can't read any selector in doStuff()

artf

Ahmed... please... read and be compliant to the issue 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.

#1664December 17, 2018by frasza2 answers
0 reactions

Span element gets stripped from editing

We have added button on RTE toolbar so that we can put selected text inside <span> Now, that functionality worked perfectly fine in our previously installed version (0.14.21) but now we updated to 0.14.43 and when I select the text and want to put it in <span> it does it in code, but RTE doesn't make it as element unt...

frasza

Okay, so we have found a solution by adding data-gjs-type='span' to a span element so the code becomes:

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.

#1662December 14, 2018by Deepak8132 answers
0 reactions

How we can reinitialise editor

Hi @artf, Hope you are doing good. How we can reinitialise the editor with json data. We want to reinitialise editor with some of the previous saved json data so that we can compare that. Is there any option so that we can change the content of editor based on json data without reloading the page ? All the Undo, Redo...

artf

I think this should be enough

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.