aimeos / ai-cms-grapesjs

GrapesJS CMS integration into Aimeos
GNU Lesser General Public License v2.1
22 stars 18 forks source link

The GrapeJS paragraph does not work properly #16

Closed Ameeko closed 2 years ago

Ameeko commented 2 years ago

Hello! The paragraph element does not work properly in the GrapeJS editor.

1) I made a blank page and put a paragraph element in it image

2) I pressed the save button image

3) I entered the following text: test [enter] test [enter] test [enter] I clicked outside I see 1 paragraph element image

4) I pressed the save button I see these elements:

It works fine if I skip step 2:

1) I made a blank page and put a paragraph element in it

3) I entered the following text: test [enter] test [enter] test [enter] I clicked outside I see 4 paragraphs, that's okay: image image image

4) I pressed the save button, everything is fine I see 4 paragraphs: image

aimeos commented 2 years ago

This seems to be a GrapesJS bug/oddity and you should create a bug report here: https://github.com/artf/grapesjs

aimeos commented 2 years ago

Updated to GrapesJS 0.18.3 which seems to fix the issue.

Ameeko commented 2 years ago

Works perfectly after the update. Thank you very much!

Ameeko commented 2 years ago

Hello! I found two more errors related to this.

1) An error occurs when I save the data

2) The rest of the text disappears

aimeos commented 2 years ago

As the original problem was a bug in GrapesJS, it's very likely that again behavior is also a bug in GrapesJS. Guess that you are using Windows which uses \r\n as line endings instead of \n and this could screw up GrapesJS.

Ameeko commented 2 years ago

OK. I also reported the bug to them https://github.com/artf/grapesjs/issues/4173