When pressing “enter/return” in an Rich Text Field, the data being stored in the model and SFDC field upon save contains Carriage Return/Line Feed characters. The surrounding HTML contains appropriate
tags around the paragraphs but the carriage return/line feeds should not be stored in the data. If anything a the “return/enter” should translate to a
but if
tags are going to be applied, not sure its even necessary.
Steps to Reproduce:
- Add a Rich Text Field to any SObject
- Create a stock “detail” page for that SObject
- Add rich text field to field editor
- Preview page
- Edit the Rich Text Field by typing a few characters, hitting return/enter and typing some more
- Inspect the model data
Expected Behavior
Model field data should not contain the CR/LF character(s)
Actual Behavior
Model data contains CR/LF characters
Thanks!