Font size change of Japanese text in RTE when copied from Word
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.
Note: Font size and font style changes only when the colour of the above text is red.
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.
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.
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.