Opened 11 years ago

Closed 9 years ago

#11376 closed Bug (fixed)

IE11: Loss of text when pasting bullet lists from Word

Reported by: mdev7 Owned by: Szymon Cofalik
Priority: Must have (possibly next milestone) Milestone: CKEditor 4.5.2
Component: Plugin : Paste from Word Version: 4.3
Keywords: IE11 Support Cc:

Description

When pasting a bullet list from Microsoft Word then text gets replaced with "<>".

Steps to reproduce:

  1. Copy a bullet list from Word using CTRL+C
  2. Go to CKEditor and paste the content using CTRL+V
  3. You will see that only one item is left and the text has been replaced with "<>".

Browser: IE 11.0.9600 OS: Windows 7 Word: Microsoft Office Professional 2010

Attachments (1)

bullets_v1.docx (15.8 KB) - added by mdev7 11 years ago.

Download all attachments as: .zip

Change History (19)

Changed 11 years ago by mdev7

Attachment: bullets_v1.docx added

comment:1 Changed 11 years ago by Frederico Caldeira Knabben

Component: GeneralPlugin : Paste from Word

comment:2 Changed 11 years ago by Jakub Ś

Keywords: IE11 added
Status: newconfirmed
Version: 4.3.14.3

Looks like it has never worked but this particular TC can be reproduced from CKEditor 4.3 and since full support for IE11 was added in CKE 4.3 I'm setting this as start version.

NOTE: IN CKE 4.2.3- result was as follows:

~~• Hgdfgdfg
• Dfgdf
• gdfgdfgdfgdf

comment:3 Changed 10 years ago by karthik

I am facing the same problem. I just forced all the users to use IE EDGE mode and most of the users are using IE11 and the last element in a bullet list is replaced by <> if it is a single word. But the strange thing is that if the last element is appended with a space and copied, then it is pasted perfectly.

Can someone please help.

Cheers:) Karthik

comment:4 Changed 10 years ago by Jakub Ś

#12790 was marked as duplicate.

comment:5 Changed 10 years ago by Jakub Ś

The same thing is happening for numbered lists.

#12385 was marked as duplicate.

comment:6 Changed 10 years ago by Jakub Ś

#13127 was marked as duplicate.

comment:7 Changed 10 years ago by Jakub Ś

#13230 was marked as duplicate.

comment:8 Changed 9 years ago by Jakub Ś

Keywords: Support added

comment:9 Changed 9 years ago by Piotrek Koszuliński

Milestone: CKEditor 4.5.2

comment:10 Changed 9 years ago by Jakub Ś

  1. For attached MS Word document, browser, with native contenteditable element, sees this code as shown below:
    <ul style="list-style-type: disc; direction: ltr;"><li style='color: rgb(0, 0, 0); font-family: "Arial","sans-serif"; font-size: 10pt; font-style: normal; font-weight: normal;'><p style='color: rgb(0, 0, 0); font-family: "Helvetica","sans-serif"; font-size: 11pt; font-style: normal; font-weight: normal; margin-top: 0cm; margin-bottom: 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1;'><strong><span lang="DE-CH" style='font-family: "Arial","sans-serif"; font-size: 10pt;'>hello</span></strong></p></li><li style='color: rgb(0, 0, 0); font-family: "Arial","sans-serif"; font-size: 10pt; font-style: normal; font-weight: normal;'><p style='color: rgb(0, 0, 0); font-family: "Helvetica","sans-serif"; font-size: 11pt; font-style: normal; font-weight: normal; margin-top: 0cm; margin-bottom: 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1;'><strong><span lang="DE-CH" style='font-family: "Arial","sans-serif"; font-size: 10pt;'>world</span></strong></p></li><li style='color: rgb(0, 0, 0); font-family: "Arial","sans-serif"; font-size: 10pt; font-style: normal; font-weight: normal;'><p style='color: rgb(0, 0, 0); font-family: "Helvetica","sans-serif"; font-size: 11pt; font-style: normal; font-weight: normal; margin-top: 0cm; margin-bottom: 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1;'><strong><span lang="DE-CH" style='font-family: "Arial","sans-serif"; font-size: 10pt;'>abc</span></strong></p></li></ul>
    
  1. CKEditor results:
    Raw Data Received:
    <font color="#000000" face="Times New Roman" size="3">
    </font><ul style="list-style-type: disc; direction: ltr;"><li style="font-weight: normal;"><p style="font-weight: normal; margin-top: 0cm; margin-bottom: 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1;"><strong><span lang="DE-CH" style='font-family: "Arial","sans-serif"; font-size: 10pt;'>hello</span></strong></p></li><li style='color: rgb(0, 0, 0); font-family: "Arial","sans-serif"; font-size: 10pt; font-weight: normal;'><p style='color: rgb(0, 0, 0); font-family: "Helvetica","sans-serif"; font-size: 11pt; font-weight: normal; margin-top: 0cm; margin-bottom: 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1;'><strong><span lang="DE-CH" style='font-family: "Arial","sans-serif"; font-size: 10pt;'>world</span></strong></p></li><li style='color: rgb(0, 0, 0); font-family: "Arial","sans-serif"; font-size: 10pt; font-weight: normal;'><p style='color: rgb(0, 0, 0); font-family: "Helvetica","sans-serif"; font-size: 11pt; font-weight: normal; margin-top: 0cm; margin-bottom: 0pt; mso-add-space: auto; mso-list: l0 level1 lfo1;'><strong><span lang="DE-CH" style='font-family: "Arial","sans-serif"; font-size: 10pt;'>abc</span></strong></p></li></ul><font color="#000000" face="Times New Roman" size="3">
    </font>
    
    After Paste Processing:
    <ul><li style="font-weight: normal;">&lt; &gt;<!--   -->&lt; &gt;<!--   -->&lt; &gt;</li></ul>
    

comment:11 Changed 9 years ago by Piotr Jasiun

Priority: NormalHigh

comment:12 Changed 9 years ago by Szymon Cofalik

Owner: set to Szymon Cofalik
Status: confirmedassigned

comment:13 Changed 9 years ago by Szymon Cofalik

Status: assignedreview

Fixed on branch:t/11376.

comment:14 Changed 9 years ago by Piotrek Koszuliński

Status: reviewreview_failed
  1. Test fails on Chrome: http://tests.ckeditor.dev:1030/tests/tickets/8103/1
  2. There's no special need to ignore the test that you added on Edge. It's very probable that it will provide us the same HTML as previous IEs.
  3. There's also no need to set data before using assertPasteEvent. This helper only fires editor#paste and doesn't care what's being inserted into editor. It checks what editor#paste contains after all the processing is done.

comment:15 Changed 9 years ago by Szymon Cofalik

Status: review_failedassigned

comment:16 Changed 9 years ago by Szymon Cofalik

Fixes pushed to branch:t/11376

comment:17 Changed 9 years ago by Szymon Cofalik

Status: assignedreview

comment:18 Changed 9 years ago by Piotrek Koszuliński

Resolution: fixed
Status: reviewclosed

Fixed on master with git:9b8ff65.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy