GrapesJS Issues

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

829 issues found

๐Ÿ” question
#2019May 17, 2019by fillipi12 answers
0 reactions

Remote storage returns 204 NO CONTENT

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.

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.

#2017May 15, 2019by keithstric2 answers
0 reactions

QUESTION: Pressing Backspace or Delete key in traits panel removes element from canvas

I'm using grapesJS within a Polymer 3.x Element and everything is working beautifully, awesome project. However, I'm experiencing an issue: When I select an element in the canvas, navigate to the traits panel, put my cursor in a trait field enter some text (or not) and then press the delete or backspace keys, it delet...

artf

Sounds like an old issue to me, are you using the latest version?

no-response[bot]

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take ac...

#2016May 14, 2019by yrbn3 answers
0 reactions

[QUESTION] How to remove unnecessary component?

@artf I use CKEditor and it's link plugin can't work with 'Link' blocks. How can I prevent creating 'Link' component when grapesjs newsletter is rendering? Or prevent link wrapping on chosen class. When adding a link: After importing the code of template shown above:

artf

If you want to disable the component from the parser you can do this:

yrbn

@artf no, If I do in such way the link becomes a text. I want grape js not to wrap it with any block

artf

I want grape js not to wrap it with any block Which block are you talking about?

#2015May 14, 2019by HakuTheWolfSpirit3 answers
0 reactions

[Question] Is it possible to extract the updated properties in events

Hello, I am wondering if it is possible to react on property updates. I have tried to use the built-in events, but its not clear to me how I am supposed to extract the required information from the model. For example when I handle the event then I get a model with alot of information, but not exactly which font-family...

artf

You can do it in this way:

HakuTheWolfSpirit

Thanks for your answer. That would mean that I had to write for every single an event handler. Isn't there a more generic way to solve this issue?

artf

That would mean that I had to write for every single an event handler. Every single what? property? In that case you can try this:

#2012May 13, 2019by webdeveloper04293 answers
0 reactions

[question] how to add script for all widgets(like protectedCss)

I want to add some functions for all components accessible. when initialize editor, there is a option like protectedCss. Isn't there a way javascript like above?

artf

You can initialize custom js in the canvas in this way:

webdeveloper0429

Thank you. Btw what I want to need is inline javascirpt. not external link... regards.

artf

In that case, I suggest you access the document of the iframe and to append manually the inline script (to get the document use editor.Canvas.getDocument())

#2008May 11, 2019by amoslover3 answers
0 reactions

[Question]The canvas turns dark and unmodifiable on adding a large piece of custom html.

I used to add custom html with editor.addComponent(). It works well at most of the time, but when I try to insert a large piece of HTML which may contain a bunch of children elements the canvas turns black and cannot be modified. I can only reload the whole editor to make it works again.

artf

the canvas turns black weird thing. Are you able to create a reproducible demo? Upload here the template if you need

no-response[bot]

This issue has been automatically closed because there has been no response to our request for more information from the original author. With only the information that is currently in the issue, we don't have enough information to take ac...

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.

#2007May 10, 2019by kaoz703 answers
1 reactions

[QUESTION] Adding new traits to component and update current ones with these

I have some custom components created before modifying their traits (for example, I created a new trait for it), these components wont contain the new trait. If I drag a new component into the editor, it will have it. Steps to reproduce: 1) Create a custom component and compile the code 2) Drag this custom component i...

kaoz70

@Lakshit-Singhal In that case I think the best option would be to create a custom plugin, and before you initialize GrapesJS, call the API, get the values and pass them in the initialization function via the plugin's options, that way they...

artf

This happens because the editor stores also traits information in components. You can delete this information be extending the component and updating its toJSON method ps: I think I'll remove traits from JSON in the next release. Perhaps m...

ahmedeldeeb25-zz

@artf this removed custom traits !! as I mentioned in #2007

#2004May 8, 2019by Ericson19913 answers
0 reactions

[QUESTIONS] Add Component(from BlockManager) into Modal

i want to make a button that displays modal, then i can add some component / block into the modal.

artf

At first, you should create a Component for the Modal, probably with a trait to trigger the visibility, and then create a button to trigger that visibility

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.

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.

#2003May 8, 2019by Jogai3 answers
0 reactions

[Question] How to select a specific element nested inside a template

My test case: https://codepen.io/jogai/pen/QRjKyN?editors=1111 I want to select the middle column so I thought I can use selectorManager.get() but its not selecting what I'm expecting. I supply the class name (because id doesn't work anyway) and the element with that class name has 4 images. but if I look in the colle...

artf

SelectorManager is meant for managing Selector entities (eg adding, updating and removing classes) not for selecting components. In your case, you should do this:

Jogai

Thanks for clearing up my misunderstanding!

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.

#2000May 6, 2019by DylanSp2 answers
1 reactions

[Question]: What event is fired when a component's Id is changed?

I'd like to trigger some behavior when a component's Id is changed in the Settings panel. I've tried editor.on() with the following events:component:update:idcomponent:update:Idcomponent:update:{id}component:update:{Id} following the documentation here for component:update:propertyName, but none of them trigger the ca...

DylanSp

After some experimentation and looking through the source, component:update:attributes is what's fired.

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.