contentful / field-editors

React components and extensions for building Contentful entry editor
https://contentful-field-editors.netlify.app/
MIT License
150 stars 114 forks source link

Rich Text: Formatting options do not respect line breaks #1545

Closed AKlein920 closed 6 months ago

AKlein920 commented 7 months ago

Hello, we have been having trouble with the rich text field editor. When our content editors attempt to apply formatting, the styles do not always get applied correctly, even when a line break is added. Here is an example:

https://github.com/contentful/field-editors/assets/21227678/26fab735-311d-4bda-a1ba-27fc6258cc78

Any response is appreciated. Thank you.

MayaGillilan commented 7 months ago

Hi @AKlein920, I'm looking into this now and from what I can tell this only occurs when you add a line break with shift+enter, but not with normal line breaks. Is there another time you were running into this issue, or could you give a little more info on it?

AKlein920 commented 7 months ago

I just tested this out again myself, and you are correct, this only happens when attempting to separate lines out with shift+enter, not when lines are separated by just the enter key. Our content editors often have trouble getting line breaks to be respected when using only the enter key, so our team has advised them to prefer the shift+enter approach.

github-actions[bot] commented 6 months ago

Marking issue as stale since there was no activity for 30 days