Ticket #8781 (confirmed Bug)

Opened 2 years ago

Last modified 2 years ago

Problems with copy/paste HTML lists.

Reported by: j.swiderski Owned by:
Priority: Normal Milestone:
Component: General Version: 3.0
Keywords: Cc:

Description (last modified by j.swiderski) (diff)

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

IE9_1.png (3.0 KB) - added by j.swiderski 2 years ago.
ie8.png (2.5 KB) - added by j.swiderski 2 years ago.

Change History

comment:1 Changed 2 years ago by j.swiderski

  • Status changed from new to confirmed

Changed 2 years ago by j.swiderski

comment:2 Changed 2 years ago by j.swiderski

  • Description modified (diff)

comment:3 Changed 2 years ago by j.swiderski

  • Description modified (diff)

Changed 2 years ago by j.swiderski

Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy