Opened 4 years ago

Closed 3 years ago

#14244 closed Bug (invalid)

Number Bullets list is not pasted correctly in CK Editor from Word file.

Reported by: priyanka Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

"This ticket is similar to #13972"

Steps to reproduce

  1. Copy the content from the attachment i.e. "Text_pasted_from_word.docx."

2.Paste the content into CK Editor using Ctrl+v or using "Paste From Word" option on the CK Editor panel.

Expected result

The number bullets used in the Text_pasted_from_word.docx. must be printed as it is.

Actual result

Number Bullets are incorrectly pasted in CK Editor as shown in the attachment.(i.e. CKEditor_paste.PNG)

Other details

Browser: Internet Explorer

Operating System: Windows 7 Enterprise

CKEditor version:4.5.4

Installed Plugins: Paste From Word

Attachments (2)

Text_pasted_from_word.docx (14.3 KB) - added by priyanka 4 years ago.
CKEditor_paste.PNG (44.8 KB) - added by priyanka 4 years ago.

Download all attachments as: .zip

Change History (3)

Changed 4 years ago by priyanka

Attachment: Text_pasted_from_word.docx added

Changed 4 years ago by priyanka

Attachment: CKEditor_paste.PNG added

comment:1 Changed 3 years ago by Jakub Ś

Resolution: invalid
Status: newclosed
Version: 4.5.4

This is how browsers see that code - there is nothing we can do here. For example IE which is the best in interpreting content pasted from MS Word sees lists as:

IE11 (two separate lists)

<ol style="list-style-type: upper-alpha; direction: ltr;"><li style='color: rgb(0, 0, 0); font-family: "Calibri","sans-serif"; font-size: 11pt; font-style: normal; font-weight: normal;'><p style='color: rgb(0, 0, 0); font-family: "Calibri","sans-serif"; font-size: 11pt; font-style: normal; font-weight: normal; margin-top: 0cm; margin-bottom: 0pt; mso-list: l3 level1 lfo1;'><span lang="EN-US">Names</span></p></li></ol>

<ol style="list-style-type: upper-roman; direction: ltr;"><li style='color: rgb(0, 0, 0); font-family: "Calibri","sans-serif"; font-size: 11pt; font-style: normal; font-weight: normal;'><p style='color: rgb(0, 0, 0); font-family: "Calibri","sans-serif"; font-size: 11pt; font-style: normal; font-weight: normal; margin-top: 0cm; margin-bottom: 0pt; mso-list: l1 level1 lfo3; mso-add-space: auto;'><span lang="EN-US">ABCD</span></p></li>
<li style='color: rgb(0, 0, 0); font-family: "Calibri","sans-serif"; font-size: 11pt; font-style: normal; font-weight: normal;'><p style='color: rgb(0, 0, 0); font-family: "Calibri","sans-serif"; font-size: 11pt; font-style: normal; font-weight: normal; margin-top: 0cm; margin-bottom: 0pt; mso-list: l1 level1 lfo3; mso-add-space: auto;'><span lang="EN-US">PQRS</span></p></li>
</ol>

Chrome (sees paragraphs but all are marked as mso-list:l1 level1)

<p class="MsoListParagraphCxSpFirst" style="text-indent:-18.0pt;mso-list:l3 level1 lfo1"><!--[if !supportLists]--><span lang="EN-US">A)<span style="font-stretch: normal; font-size: 7pt;">&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><!--[endif]--><span dir="LTR"></span><span lang="EN-US">Names<o:p></o:p></span></p>

<p class="MsoListParagraphCxSpMiddle" style="margin-left:72.0pt;mso-add-space:
auto;text-indent:-18.0pt;mso-list:l1 level1 lfo3"><!--[if !supportLists]--><span lang="EN-US">I)<span style="font-stretch: normal; font-size: 7pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><!--[endif]--><span dir="LTR"></span><span lang="EN-US">ABCD<o:p></o:p></span></p>

<p class="MsoListParagraphCxSpMiddle" style="margin-left:72.0pt;mso-add-space:
auto;text-indent:-18.0pt;mso-list:l1 level1 lfo3"><!--[if !supportLists]--><span lang="EN-US">II)<span style="font-stretch: normal; font-size: 7pt;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><!--[endif]--><span dir="LTR"></span><span lang="EN-US">PQRS<o:p></o:p></span></p>
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy