Opened 9 years ago

Closed 8 years ago

#14335 closed Bug (fixed)

IE11 & EDGE: Pasting Numbered list with diff start value from word doc not shown correctly

Reported by: Satya Minnekanti Owned by: Marek Lewandowski
Priority: Normal Milestone: CKEditor 4.6.0
Component: Plugin : Paste from Word Version: 4.0
Keywords: ibm Cc: chrisgui, Irina

Description

Steps to reproduce

  1. Open attached word doc which has numbered list with start value of 6
  2. Copy & paste the list using Paste from Word dialog

Expected result

List copied & pasted properly & shows start value correctly

Actual result

List pasted ok but start value shown as incorrect it shows start value as 1

Attachments (1)

Numbered list with start value.doc (22.5 KB) - added by Satya Minnekanti 9 years ago.

Download all attachments as: .zip

Change History (5)

Changed 9 years ago by Satya Minnekanti

comment:1 Changed 9 years ago by Jakub Ś

Component: GeneralPlugin : Paste from Word
Status: newconfirmed
Version: 4.5.64.0

From what I have checked this problem touches all the browsers and not just the IE. In IE however this issue is visible contrary to other browsers.

Problem can be reproduced from the very beginning. I was pretty sure we have this issue already reported but I haven't found it.

From what I have checked the browser see HTML correctly (Chrome):

<ol style="margin-top:0cm" start="6" type="1">
 <li class="MsoNormal"><span lang="EN-IE">Apple<o:p></o:p></span></li>
 <li class="MsoNormal"><span lang="EN-IE">Boy<o:p></o:p></span></li>
 <li class="MsoNormal"><span lang="EN-IE">cat<o:p></o:p></span></li>
</ol>

When this HTML is pasted into browser it results in Chrome/FF:

<ol>
	<li value="6">Apple</li>
	<li>Boy</li>
	<li>cat</li>
</ol>

in IE

<ol>
	<li>Apple</li>
	<li>Boy</li>
	<li>cat</li>
</ol>

Neither of these results is correct.

Although start attribute is perfectly valid and allowed in ACF (you can apply it from list properties), it is still removed most likely by paste from word filter.
I have tried setting extraAllowedContent : 'ul[start],ol[start]' but it had no effect. Only setting allowedContent:true gives same visual result in IE as in Chrome and FF. Thanks to disabling ACF the val attribute stays on li element. Most likely there are some more strict ACF rules for IE and value attribute in elements.

Anyway the start attribute should not be removed. This is the real issue here.

comment:2 Changed 8 years ago by Marek Lewandowski

Milestone: CKEditor 4.6.0
Owner: set to Marek Lewandowski
Status: confirmedassigned

This issue will be resolved by #9991.

comment:3 Changed 8 years ago by Marek Lewandowski

It's fixed by #9991.

Fixed with git:f2af0353f8fb20231c7ca6de080c6cad273195eb merged to major.

comment:4 Changed 8 years ago by Marek Lewandowski

Resolution: fixed
Status: assignedclosed
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