Opened 4 years ago

Last modified 2 years ago

#13651 confirmed Bug

Unable to paste unicode characters

Reported by: Jeremiah114 Owned by:
Priority: Normal Milestone:
Component: Plugin : Paste from Word Version:
Keywords: Cc:

Description

Steps to reproduce

When I try to copy and paste certain unicode characters like pi (960), angle (8736) into the editor, it appears as "p" and "Ð"

Expected result

Should display as the actual pi and angle character

Actual result

Appear as "p" and "Ð"

Other details (browser, OS, CKEditor version, installed plugins)

Same effect on IE, chrome etc

Attachments (1)

ckeditor report bug.docx (27.5 KB) - added by Jeremiah114 4 years ago.

Download all attachments as: .zip

Change History (4)

Changed 4 years ago by Jeremiah114

Attachment: ckeditor report bug.docx added

comment:1 Changed 4 years ago by Piotrek Koszuliński

Component: Core : PastingPlugin : Paste from Word
Status: newconfirmed
Version: 4.5.2

On Chrome this is available in the clipboard:

<p class=MsoNormal style='text-align:justify;line-height:150%'><span
lang=EN-US style='font-family:Arial;color:red'>Pasting </span><span lang=EN-US
style='font-family:Symbol;mso-ascii-font-family:Arial;mso-hansi-font-family:
Arial;mso-bidi-font-family:Arial;color:red;mso-char-type:symbol;mso-symbol-font-family:
Symbol'><span style='mso-char-type:symbol;mso-symbol-font-family:Symbol'>Ð</span></span><span
lang=EN-US style='font-family:Arial;color:red'> in ckeditor becomes Ð<o:p></o:p></span></p>

<p class=MsoNormal style='text-align:justify;line-height:150%'><span
lang=EN-US style='font-family:Arial;color:red'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal style='text-align:justify;line-height:150%'><span
lang=EN-US style='font-family:Arial;color:red'>Pasting </span><span lang=EN-US
style='font-size:14.0pt;line-height:150%;font-family:Symbol;mso-ascii-font-family:
Arial;mso-hansi-font-family:Arial;mso-bidi-font-family:Arial;color:red;
mso-char-type:symbol;mso-symbol-font-family:Symbol'><span style='mso-char-type:
symbol;mso-symbol-font-family:Symbol'>p</span></span><span lang=EN-US
style='font-family:Arial;color:red'> in ckeditor becomes p<o:p></o:p></span></p>

So Word indeed uses "p" and "Ð", but style them using font-family:Symbol. Unfortunately, this is totally incorrect behaviour, because these characters does not represent pi and angle characters: http://jsfiddle.net/vhgub77z/

To fix this we would need to add special kind of transformation which finds these spans and translate them into what they should be.

comment:2 Changed 2 years ago by Tade0

Milestone: CKEditor 4.6.1

For some reason this works now in Chrome with the new PFW plugin(4.6.0).

Interestingly Firefox still has this error.

comment:3 Changed 2 years ago by Marek Lewandowski

Milestone: CKEditor 4.6.1
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy