GrapesJS Issues

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

1180 issues found

#3363March 24, 2021by nairdapuiu1 answer
1 reactions

BUG: Set content function empties the component content

I am trying to use the set function to change the content of a component, but actually the result is an empty component with nothing inside. This is an example with the code summarized Version used: 0.16.44 What is the expected behavior? The code executed should result in a component with text "foo" inside. What is th...

artf

you shouldn't use the content property, use selectedComponent.components(str)

#3362March 23, 2021by qweiop8012 answers
0 reactions

BUG: double click problem

grapesjs - 0.16.105 When I click in one element(form - this element have disable cloning), next second element(column). First element clone in to second element and lost all styles. Can You help me? https://user-images.githubusercontent.com/44744754/112153667-cb534080-8be3-11eb-90ef-dbccc866fde2.mp4

artf

Hi, at first, you need to update your grapesjs version, it's too much old, and I can't help you without a reproducible demo of the issue

qweiop801

I update grapesjs to 0.16.45 and problem still exist

#3359March 23, 2021by qweiop8011 answer
0 reactions

double click copy bug.

When I click in one element, next second element first element clone to second element and lost all styles. Can You help me?

artf

Hi @qweiop801 please follow the issue template by following all the steps

#3356March 22, 2021by mitcht1 answer
0 reactions

FEAT: Unminified version in the latest release

What are you trying to add to GrapesJS? Un-minified versions for each release Describe your feature request detailed I am working with some more complex methods utilizing the Component Manager. The last release that had an un-minified 'debug' version was 0.15.xx. Can you please release the unminified as well as the mi...

artf

Hi @mitcht the current bundle includes the minified file but also its source map, so you can easily view the original code from dev tools (more about it here), therefore there is no reason to include also the unminified version if you need...

#3354March 22, 2021by ThetripGr1 answer
1 reactions

BUG: having two instances of grape present makes the asset manager of the first "stop" working

Version: 0.16.44 What is the expected behavior? I expect to have 2 separate instances of grape in one single page and being able to utilize the asset manager properly Describe the bug detailed I have initialized 2 instances of grape in a page with the config below what happens is that in the second instance of the edi...

ThetripGr

OK so after a little bit more investigating, the real issue was due to how I was initiating the editors so my bad. I wasn't making sure the instances were truly separate and I was overwritting the first instance even though it appeared as...

#3353March 19, 2021by jcsofts1 answer
0 reactions

BUG: The colorpicker scroll off the input box

thanks for your work, this is a good project, this may be is not a bug I trying to make the colorpicker in style manager scroll with the input box. for example: the (color,background) input boxopen the colorpickerscroll the style manager the input box moved, but the colorpicker stay at the old position I try this on t...

artf

The color picker is placed absolutely. Unless you'll find a way to update it on the scroll of the style manager, I don't see alternatives.

#3352March 19, 2021by harsh2013 answers
1 reactions

BUG: Default Content is getting Inserted while using setComponents if Tag Body is empty

Version: Latest You can get the version by typing grapesjs.version into the console Are you able to reproduce the bug from the demo?[X] Yes[ ] No What is the expected behavior? Component with empty body should not be populated with default content. What is the current behavior? When we create an empty node and pass it...

artf

You have defined the default content in the component definition, so, an empty one will use that as default. Just move that content from component definition to the paragraph block.

harsh201

@artf Any help here?

harsh201

Thanks @artf! Completely forgot about adding at block level.

#3343March 17, 2021by neilkyoung3 answers
0 reactions

BUG: Illegal Invocation error when using keepEmptyTextNodes

Version: 0.16.44 Are you able to reproduce the bug from the demo?[x] Yes[ ] No Set editor.Parser.getConfig().keepEmptyTextNodes = true; in the console and then attempt to drag a form into a 2 column plugin. What is the expected behavior? Describe the bug detailed From my observation a keepEmptyTextNodes will throw an...

artf

Well, yeah makes sense, probably we should take the first "valid" element (the one which actually supports matches). But I'm also curious to know your case for the use of keepEmptyTextNodes. A few days ago I was actually thinking about rem...

neilkyoung

@artf A system we use for web page authoring implements this. Although we have now managed to convince them to disable this thanks to your comment above :-D

artf

Great, I'll close this then. Let me know in case there is something wrong/different with that change on your side

#3334March 11, 2021by KernelDeimos1 answer
0 reactions

BUG: Attempts to load scripts to canvas maybe breaks javascript??

Version: 0.16.44 Are you able to reproduce the bug from the demo? [ ] Yes [x] No What is the expected behavior? Legit anything else Describe the bug detailed I was attempting to load scripts into the canvas. My first attempt was scripts: [] and then I ran into the synchronization issue mentioned in this PR's thread: h...

KernelDeimos

I haven't used inline <script> tags in a while and forgot about this caveat of the HTML parser. Closing this.

#3325March 9, 2021by mmotov3 answers
0 reactions

BUG: JSON.stringify(this.editor.getComponents()) Error

Version: 0.16.44 Hi there! I have remote storage for pages, and recently I faced an issue when saving page, JSON.stringify(editor.getComponents()) started to throw error Uncaught TypeError: e[M].getId is not a function. I investigated the already saved JSON representation of the page and found out that it fails on thi...

yucomds

Same error here ... do you have a solution? [EDIT] Downgrading seems to be the only solution for now

josfh2005

Same problem here, if I preprocess the components and remove that attribute (__symbol) before load the Editor the template works fine. Is the a way @artf to disable the symbols for now?

artf

Yeah unfortunately the previous version of grapesjs had a bug that created symbols involuntary. In the current version, the bug is fixed and symbols are disabled, but unfortunately, this still happens if you try to load a component with a...