Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

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.

Error Messages

Not Applicable

Steps to Reproduce

  1. Create a section with a Rich Text editor.
  2. 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.


Perform the following local-change, when the RTE placeholder contains HTML because it is set as the content of RTE Editable:
  1. Change the multiline field value to a single line field value.
  2. Add <br/> for next line text.

Published October 7, 2018 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us