Is there a way of adding line breaks in the Rich Text editor? When I m using, I can just add a new paragraph. But when I paste content for somewhere else, I can see that the Rich Text editor adds the line break there. Things like crtl + enter
or crtl + shift + enter
didn’t work for me.
I just discovered that shift + enter
works.
Not really. A simple button that adds a line-break is woefully not present
I’m using contentful with Next.js.
My first attempt was using a long text field with markdown, then converting the markdown to HTML with the markedjs package.
It wasn’t behaving so I decided to switch to the rich text option. It was quick to set up, but I can’t get line breaks to work!
I’ve seen several other posts about it, anyone have any ideas? shift+enter
does nothing.
EDIT:
This did the trick: https://github.com/contentful/rich-text/issues/69#issuecomment-459935168
And use shift + enter
to create \n
which is then converted to </br>
Hi everyone, I recently put together a list of Rich Text top tips to address frequent community questions. This also contains the recommended advice on line breaks.
Hope you find this helpful!
Hi everyone,
I recently created a guide to help Contentful users get line breaks to render properly in either rich text fields or regular text fields.
If anyone has questions, please feel free to reach out. I’d be happy to help further.
-Connor