Support Article
Placeholder with multiline pyLabel does not display RTE
SA-65208
Summary
A localized placeholder, for a field containing a new line in the Description, does not display the Rich Text Editor (RTE) control.
Error Messages
Not Applicable
Steps to Reproduce
- Create a section with a Rich Text editor.
- Create a placeholder with multiple lines.
Root Cause
While debugging, the below line caused the issue,
File Name: pzpega_control_richtexteditor.js
Function Name: p.c.IRTE.prototype.init
Code Line: var rteConfigObj = pega.control.eventParser.parseJSON(rteConfigs);
The console error is expected as rteConfigs (placeholder has \n) has a new line character and parseJSON displays the exception.
As a result, the next function call to generate the RTE does not occur and RTE does not render.Resolution
Perform the following local-change, when the RTE placeholder contains HTML because it is set as the content of RTE Editable:
- Change the multiline field value to a single line field value.
- Add <br/> for next line text.
Published October 7, 2018 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.