Opened 14 months ago

Closed 5 months ago

#14335 closed Bug (fixed)

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

Reported by: satya Owned by: m.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 14 months ago.

Download all attachments as: .zip

Change History (5)

Changed 14 months ago by satya

comment:1 Changed 14 months ago by j.swiderski

  • Component changed from General to Plugin : Paste from Word
  • Status changed from new to confirmed
  • Version changed from 4.5.6 to 4.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 5 months ago by m.lewandowski

  • Milestone set to CKEditor 4.6.0
  • Owner set to m.lewandowski
  • Status changed from confirmed to assigned

This issue will be resolved by #9991.

comment:3 Changed 5 months ago by m.lewandowski

It's fixed by #9991.

Fixed with git:f2af0353f8fb20231c7ca6de080c6cad273195eb merged to major.

comment:4 Changed 5 months ago by m.lewandowski

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.
© 2003 – 2016 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy