Opened 8 years ago

Last modified 4 years ago

#8136 confirmed Bug

Pasting numbered list with a different start value and style not working properly

Reported by: Satya Minnekanti Owned by:
Priority: Normal Milestone:
Component: General Version: 3.5.3
Keywords: IBM Cc: Damian, Teresa Monahan

Description

To reproduce the defect:

Copy the list from attached word doc and paste in to editor.

keep cursor at end of first list item and press Enter.

Expected Result: A new list item is created and numbers for each list item are changed accordingly.

Actual Result: A new list item is created but numbers in the list item are not changed accordingly and when we press enter next to each pasted list item it is creating a separate list.

Attachments (5)

list with diff style & start value.doc (22.5 KB) - added by Satya Minnekanti 8 years ago.
8136_ie8_rawdata_office2010std.txt (1.5 KB) - added by Wiktor Walc 5 years ago.
8136_ie11_rawdata_office2010std.txt (1.2 KB) - added by Wiktor Walc 5 years ago.
8136_firefox_rawdata_office2010std.txt (19.0 KB) - added by Wiktor Walc 5 years ago.
8136_chrome_rawdata_office2010std.txt (1.5 KB) - added by Wiktor Walc 5 years ago.

Download all attachments as: .zip

Change History (9)

Changed 8 years ago by Satya Minnekanti

comment:1 Changed 8 years ago by Jakub Ś

Status: newconfirmed
Version: 3.5.3

Reproducible from CKE 3.5.3 rev [6616].

In this revision new list handling was introduced. Before it lists were pasted as numbered.

comment:2 Changed 7 years ago by Jakub Ś

Other tickets caused by [6616] revision: #7982, #8516, #8780

comment:3 Changed 5 years ago by Wiktor Walc

The original TC is mainly about the improper handling of list items with "value" attribute. Handling the value attribute should be tracked in a separate ticket. There are some really weird issues with the attached document in IE11 and Chrome, at least when copying from Office 2010 Standard on Windows 7.

IE8, result after pasting in 3.5.2:

<ol>
	<li>
		apple</li>
	<li>
		boy</li>
	<li>
		cat</li>
</ol>

IE8, result after pasting in 3.5.3:

<ol style="list-style-type: upper-roman">
	<li value="2">
		apple</li>
	<li value="3">
		boy</li>
	<li value="4">
		cat</li>
</ol>

IE8, result after pasting in 3.5.3 and then pressing enter keys after first and second list items:

<ol style="list-style-type: upper-roman">
	<li value="2">
		apple</li>
	<li>
		&nbsp;</li>
	<li value="3">
		boy</li>
	<li>
		&nbsp;</li>
	<li value="4">
		cat</li>
</ol>

it renders like this:


Results for CKEditor 4.4.6:

Result after pasting in IE8 (from Office 2010), with ACF disabled:

<ol style="list-style-type: upper-roman">
	<li value="2">apple</li>
	<li value="3">boy</li>
	<li value="4">cat</li>
</ol>

Result after pasting in IE11 (from Office 2010), with ACF disabled: (list items and numbering are gone)

<ol>
	<li>&lt; &gt;<!--  -->&lt; &gt;<!--  -->&lt; &gt;</li>
</ol>

Result after pasting in Chrome 39 (from Office 2010), with ACF disabled: (list items are gone)

<p style="margin-left:27.35pt;">II.</p>

<p style="margin-left:27.35pt;">III.</p>

<p style="margin-left:27.35pt;">IV.</p>

Result after pasting in Firefox 34 (from Office 2010), with ACF disabled:

<ol style="list-style-type:upper-roman;">
	<li value="2">apple</li>
	<li value="3">boy</li>
	<li value="4">cat</li>
</ol>

Note: the results of pasting starting from CKEditor 4.0, up to 4.2.3 in IE11 were:

<p>~~II.&nbsp;apple<br />
III.&nbsp;boy<br />
IV.&nbsp;cat<br />
&nbsp;</p>

Starting from CKEditor 4.3, in IE11 it is:

<ol>
	<li>&lt; &gt;<!--  -->&lt; &gt;<!--  -->&lt; &gt;</li>
</ol>

The results of pasting in Chrome were consistent starting from 4.0.1:

<p style="margin-left:27.35pt">II.</p>

<p style="margin-left:27.35pt">III.</p>

<p style="margin-left:27.35pt">IV.</p>

In CKEditor 4.0 the result was:

<p style="margin-left:27.35pt;">&nbsp; &nbsp;&nbsp;II.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; apple</p>

<p style="margin-left:27.35pt;">&nbsp;III.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; boy</p>

<p style="margin-left:27.35pt;">&nbsp;IV.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; cat</p>

<p>&nbsp;</p>

Changed 5 years ago by Wiktor Walc

Changed 5 years ago by Wiktor Walc

Changed 5 years ago by Wiktor Walc

Changed 5 years ago by Wiktor Walc

comment:4 Changed 4 years ago by Anna Tomanek

Summary: Pasting Numbered list with diff start value & style not working properlyPasting numbered list with a different start value and style not working properly
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy