Opened 12 years ago

Closed 7 years ago

#8781 closed Bug (fixed)

Problems with copy/paste HTML lists.

Reported by: Jakub Ś Owned by:
Priority: Normal Milestone: CKEditor 4.6.0
Component: General Version: 3.0
Keywords: Cc:

Description (last modified by Jakub Ś)

This issue was found when reproducing #8574

  1. Clear editor contents and switch to source.
  2. Paste the below code:
    <ol id="d65e23">
    	<li>
    		toto
    		<ol>
    			<li>
    				bibop</li>
    			<li>
    				tutut</li>
    		</ol>
    	</li>
    	<li>
    		tata
    		<ol>
    			<li>
    				lolilop</li>
    			<li>
    				reir</li>
    		</ol>
    	</li>
    	<li>
    		tutu</li>
    	<li>
    		lolo</li>
    </ol>
    
  3. Switch to WYSIWYG, select whole list (E.g. CRTL+A) and copy with crtl+C
  4. Paste the list using PasteFromWord dialog, paste dialog or CRTL+V

Results:
Webkit - List is wrapped in ol, li, div (div - typical for webkit pasting)
Opera - Similar to Webkit but there is no div - list is wrapped into ol, li
IE9 - List isalso nested but it looks a little bit broken (See image)
IE6-7 - Result is the same as in IE9 but from CKE 3.6.2 extra JS error is thrown (described in #8801):
Message: Invalid argument
Line: 796
URI: /3.6.2/ckeditor/_source/plugins/selection/plugin.js

IE8 - List looks just like in IE9 but there is extra '2.' at the bottom (See image)

Ticket reproducible from CKE 3.0

Firefox has its onw problem described in #8754

Attachments (2)

IE9_1.png (3.0 KB) - added by Jakub Ś 12 years ago.
ie8.png (2.5 KB) - added by Jakub Ś 12 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 12 years ago by Jakub Ś

Status: newconfirmed

Changed 12 years ago by Jakub Ś

Attachment: IE9_1.png added

comment:2 Changed 12 years ago by Jakub Ś

Description: modified (diff)

comment:3 Changed 12 years ago by Jakub Ś

Description: modified (diff)

Changed 12 years ago by Jakub Ś

Attachment: ie8.png added

comment:4 Changed 7 years ago by Jakub Ś

Milestone: CKEditor 4.6.0
Resolution: fixed
Status: confirmedclosed

Fixed with new Paste From Word plugin in 4.6.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