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

Font size change of Japanese text in RTE when copied from Word

SA-8320

Summary



When Japanese text is copied from word doc and pasted in RTE, font breaks at every Alphanumeric character in b/w the Japanese characters.

For example, if the below Japanese text is pasted in RTE, characters after '2' appear to be in a different font and the size is smaller.
日本語を2回入力すると

Note: Font size and font style changes only when the colour of the above text is red.


Error Messages



Not Applicable

Steps to Reproduce



Give some Japanese font style to Japanese text in word.
Set font colour to red for the above text.
Copy this from word to RTE.
Font size and font style changes after the alphanumeric characters if any included in Japanese text.


Root Cause



There is logical bug in ckeditor pzpega_ckeditor_pastefromword_filter_default plugin, where removing the empty spans and making the html fragement incomplete.
eq., <span style='font-size:medium'><span>Some text</span><span>1234</span></span>
if we remove the empty spans, font-size medium is applied only to "Some Text" not to 1234.

Need to avoid removing the spans.

//data = data.replace( /<span>/g, '' );
in CKEDITOR.cleanWord function.


Resolution



This issue is resolved by hotfix item HFix-21518

Published January 31, 2016 - 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