Placeholder with multiline pyLabel does not display RTE
A localized placeholder, for a field containing a new line in the Description, does not display the Rich Text Editor (RTE) control.
Steps to Reproduce
- Create a section with a Rich Text editor.
- Create a placeholder with multiple lines.
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.
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.
0% found this useful