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

fix(rich-text): show the selected headline inside of lists #1582

Closed chrishelgert closed 5 months ago

chrishelgert commented 5 months ago

We always picked the first item to check if it's a headline. Inside lists it would be deeper nested so we need a further iteration.

chrishelgert commented 5 months ago

LGTM one other test you could consider would be when you press enter, should it keep the type?

If you have a heading 1 in a list and you make a new list item, should it also be a heading 1?

That should be still the same behaviour as before - it goes back to paragraph. Reached out to the team, maybe a nice UX improvement for the future, as we keep bold and so on but not headlines