Opened 5 years ago

Closed 5 years ago

#12821 closed Bug (invalid)

Paste from Word changes formatting in the middle of the text

Reported by: Jozef Krchnavy Owned by:
Priority: Normal Milestone:
Component: Plugin : Paste from Word Version:
Keywords: Cc: xkrchnav@…

Description

Summary: When pasting from Word, with pasteFromWordRemoveFontStyles set to false, a formatting is changed in the middle of the text (in the Word doc no change at this position). This happens only in the Firefox. IE showed this issue as well before, but now seems to be fixed (latest IE11). Chrome has been ok all the time.

Steps to reproduce:

  1. Open CK Editor in Firefox, could be for example nightly http://nightly.ckeditor.com/15-01-15-07-06/full/samples/replacebyclass.html
  2. In Console set pasteFromWordRemoveFontStyles=false using Firebug for example:
CKEDITOR.instances['editor1'].config.pasteFromWordRemoveFontStyles=false
  1. Open the attached Word document, select all, copy
  2. In CK Editor click Paste from Word, paste the whole Word document.
  3. Click in the editor text somewhere around: "equitable education" screenshot1, click somewhere around: "a global society" screenshot2.
  4. The screenshot1 shows "body p span span", the screenshot2 only "body p span" even if there is no format change. This is causing format break when sent by email for example - screenshot 3.

Browser and OS: Firefox 35.0, Windows 8.1 Enterprise 64bit

Attachments (4)

screenshot1.PNG (41.4 KB) - added by Jozef Krchnavy 5 years ago.
screenshot2.PNG (41.4 KB) - added by Jozef Krchnavy 5 years ago.
screenshot3.PNG (43.9 KB) - added by Jozef Krchnavy 5 years ago.
ELL Forum Invitation.docx (19.8 KB) - added by Jozef Krchnavy 5 years ago.
Word to paste from

Download all attachments as: .zip

Change History (7)

Changed 5 years ago by Jozef Krchnavy

Attachment: screenshot1.PNG added

Changed 5 years ago by Jozef Krchnavy

Attachment: screenshot2.PNG added

Changed 5 years ago by Jozef Krchnavy

Attachment: screenshot3.PNG added

Changed 5 years ago by Jozef Krchnavy

Attachment: ELL Forum Invitation.docx added

Word to paste from

comment:1 Changed 5 years ago by Jozef Krchnavy

Version: 4.4.7 (GitHub - master)

comment:2 Changed 5 years ago by Jozef Krchnavy

Cc: xkrchnav@… added

comment:3 Changed 5 years ago by Jakub Ś

Keywords: pasteFromWordRemoveFontStyles removed
Resolution: invalid
Status: newclosed
Version: 4.4.7

This is how Firefox sees your Word:

<span style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;" lang="EN-US"> of “<span style="mso-bidi-font-style:italic">equitable education for all and </span>success
in a global society,” there exist several state and federal regulations that support
these learners and ensure their educational needs are met, so they can emerge
college and/or career ready. Achieving this goal will open and broaden future
opportunities for all District 205 students.</span>

and this is how Chrome sees it:

<span lang="EN-US" style="font-size:10.0pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;"> of “equitable education for all and success
in a global society,” there exist several state and federal regulations that support
these learners and ensure their educational needs are met, so they can emerge
college and/or career ready. Achieving this goal will open and broaden future
opportunities for all District 205 students.<o:p></o:p></span>

As you can see Firefox (not CKEditor) sees extra italic span. Perhaps this is some leftover from formatting you havd done in your document. In such case there is nothing we can do here.

CKEditor works as expected as it processes what it gets.


If text looks the same in editor but doesn't after sending email then you should check your server-side code.

Taking the two above into account, I'm closing this ticket as invalid.

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