Opened 10 years ago
Closed 10 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:
- Open CK Editor in Firefox, could be for example nightly http://nightly.ckeditor.com/15-01-15-07-06/full/samples/replacebyclass.html
- In Console set pasteFromWordRemoveFontStyles=false using Firebug for example:
CKEDITOR.instances['editor1'].config.pasteFromWordRemoveFontStyles=false
- Open the attached Word document, select all, copy
- In CK Editor click Paste from Word, paste the whole Word document.
- Click in the editor text somewhere around: "equitable education" screenshot1, click somewhere around: "a global society" screenshot2.
- 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)
Change History (7)
Changed 10 years ago by
Attachment: | screenshot1.PNG added |
---|
Changed 10 years ago by
Attachment: | screenshot2.PNG added |
---|
Changed 10 years ago by
Attachment: | screenshot3.PNG added |
---|
Changed 10 years ago by
Attachment: | ELL Forum Invitation.docx added |
---|
comment:1 Changed 10 years ago by
Version: | → 4.4.7 (GitHub - master) |
---|
comment:2 Changed 10 years ago by
Cc: | xkrchnav@… added |
---|
comment:3 Changed 10 years ago by
Keywords: | pasteFromWordRemoveFontStyles removed |
---|---|
Resolution: | → invalid |
Status: | new → closed |
Version: | 4.4.7 |
This is how Firefox sees your Word:
<span style="font-size:10.0pt;font-family:"Verdana","sans-serif"" 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:"Verdana","sans-serif""> 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.
Word to paste from