GrapesJS Issues

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

3464 issues found

#2741April 28, 2020by Joshmamroud2 answers
0 reactions

How to wrap component with text nodes based on trait?

Hello @artf , I'm not sure if this goes here but I can't figure out from the documentation how to update the component model based on a trait. The functionality I'm trying to achieve is add a text trait to a component called "condition" which would accept a Boolean expression. If this trait has a value then I would li...

artf

You just have to extend the toHTML function of the component model to achieve it (search in issues if you need examples)

Joshmamroud

Ok, I will take a look. Thank you!

#2740April 27, 2020by Gangkaroo1 answer
1 reactions

[BUG] Append does not work consistently

Are you using the latest release (older versions are NOT supported)? Yes Are you facing the bug with your local copy of GrapesJS or with the current demo? Local and current demo I'm using editor.getSelected().append() to add Text to the currently selected component in the editor. This seems to consistently work when l...

artf

The Text component is composed of components container and content (printed after components), so when you use append it actually appends the node but you see it above as the content is printed below. We need the components container for a...

#2739April 27, 2020by andy-awareNo answers
0 reactions

[Question] Asset Manager Folders

Hi, I've been looking to implement folders for the asset manager like this question: https://github.com/artf/grapesjs/issues/229 However, I can't find anywhere in the documentation to do this. And feel like I'm going around on myself. Any help is appreciated. Thanks.

#2738April 26, 2020by adamwpe3 answers
2 reactions

[QUESTION] Keep Hover state when amending the child

I'm trying to edit a dropdown list option, and it's quite difficult to style it because you cannot move your mouse to the Style Manager since the hover will disappear. So is there a way to keep the hover state active when amending a child? I know you can style using the Layer Manager - but that's not as user friendly,...

adamwpe

@artf Thank you! I made an example of a working Drop Down List for anyone who comes across this. https://jsfiddle.net/f74zqpgx/ Adam

Ju99ernaut

Had tried this, but realized you can only edit the styles for the hover state.

Ju99ernaut

You can also just select the div.dropdown-content and set its display to block in the Style Manager then set it back to none when you finish editing.

#2735April 25, 2020by nedim1511No answers
0 reactions

BS Language support

Support for Bosnian language needed. I will do this and create a pull request. Thanks.

#2734April 25, 2020by grodriguez882 answers
2 reactions

GrapesJS Block Attributes not shows in config when I load the HTML and CSS

Hi, I'm beginner in GrapesJS, I want just create a block with some custome attributes, when I drag and drop the block and I select the block, if I see the config menu I've the new attribute than I've added: twitter title and I can modify it, but when I save the HTML and the CSS and I've reload the page, the HTML and C...

Ju99ernaut

Reference issue #2691

grodriguez88

@Ju99ernaut thanks a lot, that's works for me

#2733April 23, 2020by randohinn3 answers
1 reactions

[Question]: Seeing weird behaviours when implementing grapes on my site

I'm trying out a very simplistic implementation of grapes. And the only block required by the automatic require at the end is: Having two issues and a question: 1) Removing a class from the style editor, wipes the rest of the style... 2) Adding a second block, after changing the first block's properties.. does not add...

Ju99ernaut

Hi @randohinn, 1) I assume removing the class isn't wiping the style but it removes the styles associated with that class from the block, try adding back the class and see if the styles come back 2) By default if a block has a class, all t...

arretnet

Hi, I've the same issue since this morning. Yesterday, and previous days all was right. Best regards

arretnet

Sorry, nothing is wrong. I've made a modification on a component generating the issue

#2731April 22, 2020by tiptronic851 answer
0 reactions

[Bug] Fullscreen on firefox

I had set up grapesjs with newsletter presets and i have the latest version 0.16.3. When i click on fullscreen icon with Firefox 75.0 nothing happen. It works correctly with Chrome. Have you already encountered this problem? Any quick fix? Thank you in advance

tiptronic85

The problem was the attribute allowfullscreen, probably Firefox need it.

#2730April 22, 2020by Lerdouille3 answers
0 reactions

[Question] Update Traits properties on a plugin

Hi, is it possible to change easily some properties in the Traits configuration of a plugin ? I"m trying to translate some strings in the grapesjs-echarts plugin, and i kindy stucked after reading your documentation and looking for the functions to do so... Could please tell me if it's possible to change some options...

artf

You should be able to do it via i18n module

Lerdouille

Hi, thank you for the answer. I agree with you, it changes indeed the default labels on Traits (. But what about a plugin, or a component not added in the i18n module ? For example, the type "map" include in your initial javascript, how ca...

Lerdouille

Hi again, any idea to help me to update traits default properties after the plugin initialization ? In my previous sampe, i have a hard coded type 'map' in my grapes.js , i would like to update some traits properties in my html page with s...