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

Issue with Rich Text Editor post value

SA-69232

Summary



Rich Text Editor (RTE) field with a post value action (on-change) and a drop-down field are present on a section. When the user enters a value in the Rich Text Editor field and moves to the next field (drop-down) without clicking outside, cursor automatically moves out of the field. Hence, the user is unable to select a value.


Error Messages



Not Applicable


Steps to Reproduce

  1. Add an RTE field and a drop-down field to a  layout
  2. Add a post value to the RTE
  3. Add a value to the RTE
  4. Click the dropdown 


Root Cause



RTE with post value and required dropdown are present on the User Interface (UI). After user enters text in the RTE and clicks the dropdown, blur fires on the dropdown as post value and refresh occurs in the Document Object Model (DOM).

Resolution



Perform the following local-change:

1. Create a non auto section and include the below script:

<script>

  function disableFocus(){
    pega.u.d.disableFocusInIE =true;
  }
  function enableFocus(){}{
    pega.u.d.disableFocusInIE =false;
  }
</script>

2. Use the below actions in the same order for the RTE onchange event:

a. Run Script > disableFocus

b. Post value

c. Run script > enableFocus


Alternatively,

1. Remove the post value from the RTE 

2. Add a hidden control and property to retrieve the value of RTE and post it on form Submit


 

Published August 19, 2019 - 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?

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