We use a Visualforce page to automatically fill a rich text field with some generated content. After that, the user is allowed to edit the content before it's displayed on a website. After our migration to Lightning, the behavior of the rich text fields seems to have changed. The rich text field still accepts the formatting as it used to when filled through Apex code. Unfortunately, when the user edits the field the following happens:
- Break tags outside paragraph tags have paragraph tags added around them.
- Break tags inside paragraph tags are converted to new paragraphs.
- Div tags are converted to paragraph tags.
- All id and class attributes are removed.
Is there a way we can use break tags in a Lightning rich text field? If not, I'd be interested in a workaround.