Opened 14 years ago

Closed 10 years ago

Last modified 10 years ago

#7661 closed Bug (fixed)

Opera/Safari/Chrome : Error when editing pasted Multilevel list

Reported by: Satya Minnekanti Owned by:
Priority: Normal Milestone: CKEditor 4.0
Component: Plugin : Paste from Word Version: 3.1
Keywords: IBM Cc: Damian, James Cunningham, Teresa Monahan

Description

To reproduce the defect:

  1. Copy Numbered/Bulleted list from attached word doc and paste in editor using Paste from Word dialog.
  1. keep cursor after 2nd list item in level 1 and press enter.
  1. A new empty list item at level 1 is created.
  1. Type some text and press enter

Expected Result: Another new empty list item at level 1 is created.

Actual Result: Another new empty list item at level 1 is created with an unnecessary <br /> added to it

Attachments (5)

Multilevel lists.doc (20.5 KB) - added by Satya Minnekanti 14 years ago.
7661_ie8_rawdata_office2010std.txt (3.1 KB) - added by Wiktor Walc 10 years ago.
7661_ie11_rawdata_office2010std.txt (4.1 KB) - added by Wiktor Walc 10 years ago.
7661_chrome_rawdata_office2010std.txt (1.5 KB) - added by Wiktor Walc 10 years ago.
7661_firefox_rawdata_office2010std.txt (19.6 KB) - added by Wiktor Walc 10 years ago.

Download all attachments as: .zip

Change History (10)

Changed 14 years ago by Satya Minnekanti

Attachment: Multilevel lists.doc added

comment:1 Changed 14 years ago by Jakub Ś

Cc: damo,jamescun,tmonahandamo, jamescun, tmonahan
Status: newconfirmed
Version: 3.5.33.1

True for Webkit and Opera from CKEditor version 3.1

Opera adds false node "at the height" of second level but if you follow the scenario the effect will be the same (Clicking in this false node makes it disappear).

comment:2 Changed 14 years ago by Jakub Ś

Issue concerning Opera is described in ticket #7662

comment:3 Changed 11 years ago by Frederico Caldeira Knabben

Component: GeneralPlugin : Paste from Word

comment:4 Changed 10 years ago by Wiktor Walc

Resolution: fixed
Status: confirmedclosed

The issue has been fixed in CKEditor 4.0 - starting from 4.0, the result is correct when creating the second list item (there is no new additional line). The only problem in 4.0 was that the cursor jumped at the beginning of the body element after creating the first list item. That issue no longer occurs in 4.4.6, in 4.4.6 the mentioned scenario works perfectly fine.

IE8, result after pasting:

<ol>
	<li>First Line- Level 1</li>
	<li>Second Line- Level 1
	<ol style="list-style-type: lower-alpha">
		<li>First Line- Level 2</li>
		<li>Second Line- Level 2</li>
	</ol>
	</li>
	<li>Third Line- Level 1</li>
	<li>Fourth Line- Level 1</li>
</ol>

<p>&nbsp;</p>

<ul>
	<li>First Line- Level 1</li>
	<li>Second Line- Level 1
	<ul>
		<li>First Line- Level 2</li>
		<li>Second Line- Level 2</li>
	</ul>
	</li>
	<li>Third Line- Level 1</li>
	<li>Fourth Line- Level 1</li>
</ul>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

IE11, result after pasting:

<ol>
	<li>First Line- Level 1</li>
	<li>Second Line- Level 1
	<ol style="list-style-type: lower-alpha;">
		<li>First Line- Level 2</li>
		<li>Second Line- Level 2</li>
	</ol>
	</li>
	<li>Third Line- Level 1</li>
	<li>Fourth Line- Level 1</li>
</ol>

<p>&nbsp;</p>

<ul>
	<li>First Line- Level 1</li>
	<li>Second Line- Level 1
	<ul>
		<li>First Line- Level 2</li>
		<li>Second Line- Level 2</li>
	</ul>
	</li>
	<li>Third Line- Level 1</li>
	<li>Fourth Line- Level 1</li>
</ul>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

Chrome 39, result after pasting:

<ol>
	<li>First Line- Level 1</li>
	<li>Second Line- Level 1
	<ol style="list-style-type:lower-alpha">
		<li>First Line- Level 2</li>
		<li>Second Line- Level 2</li>
	</ol>
	</li>
	<li>Third Line- Level 1</li>
	<li>Fourth Line- Level 1</li>
</ol>

<p>&nbsp;</p>

<ul>
	<li>First Line- Level 1</li>
	<li>Second Line- Level 1
	<ul>
		<li>First Line- Level 2</li>
		<li>Second Line- Level 2</li>
	</ul>
	</li>
	<li>Third Line- Level 1</li>
	<li>Fourth Line- Level 1</li>
</ul>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

Firefox 34, result after pasting:

<ol>
	<li>First Line- Level 1</li>
	<li>Second Line- Level 1
	<ol style="list-style-type:lower-alpha">
		<li>First Line- Level 2</li>
		<li>Second Line- Level 2</li>
	</ol>
	</li>
	<li>Third Line- Level 1</li>
	<li>Fourth Line- Level 1</li>
</ol>

<p>&nbsp;</p>

<ul>
	<li>First Line- Level 1</li>
	<li>Second Line- Level 1
	<ul>
		<li>First Line- Level 2</li>
		<li>Second Line- Level 2</li>
	</ul>
	</li>
	<li>Third Line- Level 1</li>
	<li>Fourth Line- Level 1</li>
</ul>

<p>&nbsp;</p>

<p>&nbsp;</p>

<p>&nbsp;</p>

Changed 10 years ago by Wiktor Walc

Changed 10 years ago by Wiktor Walc

Changed 10 years ago by Wiktor Walc

Changed 10 years ago by Wiktor Walc

comment:5 Changed 10 years ago by Wiktor Walc

Milestone: CKEditor 4.0
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