Support Article
Rich text editor "Paste from Word" feature formatting issue
SA-28762
Summary
When user copies data from the Microsoft word document in to RTE, some of the formatting is getting loss.
User have a requirement that states users must utilize the Rich Text Editor control to import formatted text into the system.
The text contains headers, tables, and may contain simple pictures. The issue they are facing is with the “copy from word” feature that the rich text editor control has. When they try to “copy from word” all the formatting disappears and even some tables are not present. When this occurs, they are required to manually fix the formatting in the rich text editor which is unrealistic because it adds labor and inconsistencies to the process.
Error Messages
Not Applicable
Steps to Reproduce
- Copy formatted text from Word.
- Paste it into the Paste from Word feature in a Pega rich text editor.
Root Cause
Pega product uses a third-party API (CKEditor) for RTE implementation. The loss of formatting is a generic issue with this editor as content created in a rich-text editor like Microsoft Word or Google Docs often includes underlying HTML formatting code. If rich text is pasted into a RTE control, this hidden code can cause formatting changes that may affect the way it appears on UI and causing the reported issue.
Resolution
An enhancement request, FDBK-16831, has been created for consideration by Pega Product Management.
Published October 24, 2016 - 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.