contentful / field-editors

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

fix: adding line breaks to rich text anchor styles [] #1707

Closed aodhagan-cf closed 4 months ago

aodhagan-cf commented 4 months ago

When creating spaces with "shift + enter" it breaks the line for normal text but doesn't for anchor tags. When rendered the rich text field is then render in apps it can contain the line break, safest to mimic the behaviour of normal text.

Before

Screenshot 2024-07-23 at 12 32 04

After

Screenshot 2024-07-23 at 12 32 51