Opened 13 years ago

Closed 7 years ago

#7209 closed Bug (fixed)

Ordered list with 3 levels not pasted from word correctly

Reported by: jorp Owned by: Marek Lewandowski
Priority: Normal Milestone: CKEditor 4.6.0
Component: Plugin : Paste from Word Version: 3.1
Keywords: Cc:

Description

If you create the following list in Word

1. Item 1
    a. Item 1a
        i. Item 1aa
2. Item 2
3. Item 3
    a. Item 3a
    b. Item 3b
    c. Item 3c
    d. Item 3d

It results in

1. Item 1
    a. Item 1a
ii. Item 1aa
3. Item 2
4. Item 3
    a. Item 3a
    b. Item 3b
    c. Item 3c
    d. Item 3d

Internet Explorer 8, Word 2003, Windows XP

Attachments (2)

test.doc (20.0 KB) - added by jorp 13 years ago.
word document test case
test2.doc (41.0 KB) - added by Jakub Ś 13 years ago.

Download all attachments as: .zip

Change History (8)

Changed 13 years ago by jorp

Attachment: test.doc added

word document test case

Changed 13 years ago by Jakub Ś

Attachment: test2.doc added

comment:1 Changed 13 years ago by Jakub Ś

Status: newconfirmed
Version: 3.53.5.3 (SVN - trunk)

Before revision version [6585] three level list pasting worked in the following way:

FireFox changes third level nodes to paragraphs since CKEditor version 3.0 Three level lists work in Chrome, Safari and IE till version 3.0.2 inclusive. Since version 3.1 they don't work any more. Third level nodes are changed to second level nodes. Opera inserts empty paragraphs for the third level nodes since CKEditor version 3.0

There is also problem with two level lists pasted from word. They work in FF3. They work in Chrome, Safari and IE till version 3.0.2. Since version 3.1 they don't work any more. Second level nodes are changed to first level nodes. Opera inserts empty paragraphs for the second level nodes since CKEditor version 3.0

Since revision version [6585] there are still some problems with three level list pasting: IE, Safari, Chrome, FF all “upgrade” third level nodes to second level nodes. Opera inserts empty paragraphs. Two level list pasting doesn't only work in Opera which inserts empty paragraphs for second level nodes.

For tests I have used test2.doc (Attachment). All cases described here were tested using Office 2003. There is a similar issue presented in ticked #6662 and it seems to fix some but not all issues described in this ticket.

comment:2 Changed 13 years ago by Jakub Ś

Version: 3.5.3 (SVN - trunk)3.1

comment:3 Changed 10 years ago by Frederico Caldeira Knabben

Component: Core : PastingPlugin : Paste from Word

comment:4 Changed 7 years ago by Marek Lewandowski

Milestone: CKEditor 4.6.0

I just checked original TC with Firefox + Word 2010 / 2013 and although list structure was ok, wrong markers were used for "Item 1aa". It's going to be fixed by #9991.

As for test2.doc the second list it has wrong lists, in file attached there are subsequent lists, not a one list with multiple level. You can easily see it by putting cursor at the end of "List1" item, pressing enter and then tab key. You'll see that you're working with a different list.

comment:5 Changed 7 years ago by Marek Lewandowski

Owner: set to Marek Lewandowski
Status: confirmedreview

comment:6 Changed 7 years ago by Marek Lewandowski

Resolution: fixed
Status: reviewclosed

It's fixed by #9991. Though structure was good already in 4.5.x, the marker for 3rd level list was wrong - and it has been fixed.

Fixed with git:f2af0353f8fb20231c7ca6de080c6cad273195eb merged to major.

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