Opened 14 years ago

Closed 13 years ago

Last modified 10 years ago

#6662 closed Bug (fixed)

Lists copied from Word are not pasted properly.

Reported by: Satya Minnekanti Owned by: Garry Yao
Priority: Normal Milestone: CKEditor 3.5.3
Component: Plugin : Paste from Word Version:
Keywords: IBM Firefox Cc: Damian, joek, james, c, lynne_kues@…

Description

Copy the lists from the Attached document and paste in to the Editor using Paste from Word dialog.

Issue 1:

when we have pasteFromWordRemoveFontStyles & pasteFromWordRemoveStyles set to true Numbered and bulleted lists are pasted properly but they are shown as paragraphs instead of list items.when you keep the cursor in one of the list items Numbered/Bulleted list icons are not highlighted.

keep the cursor at the end of one of the list item and press Enter

Expected Result: A new List item should be started.

Actual Result: A new Paragraph is started.

Issue 2:

when we have pasteFromWordRemoveFontStyles & pasteFromWordRemoveStyles set to false Numbers & bullets for the top level list items are missing.when you keep the cursor in one of the list items Numbered/Bulleted list icons are not highlighted.

keep the cursor at the end of one of the list item and press Enter

Expected Result: A new List item should be started.

Actual Result: A new Paragraph is started.

I am attaching Screenshot of the 2 issues.

Attachments (11)

This is a line of text.doc (27.0 KB) - added by Satya Minnekanti 14 years ago.
lists not pasted properly numbers & bullets missing from top level lists issue2.jpg (8.8 KB) - added by Satya Minnekanti 14 years ago.
lists pasted properly but shown as paragraphs issue1.jpg (39.1 KB) - added by Satya Minnekanti 14 years ago.
6662.patch (3.2 KB) - added by Tobiasz Cudnik 14 years ago.
6662.docx (11.0 KB) - added by Garry Yao 13 years ago.
6662_2.patch (5.1 KB) - added by Tobiasz Cudnik 13 years ago.
6662_3.patch (5.1 KB) - added by Tobiasz Cudnik 13 years ago.
bullets.docx (10.7 KB) - added by Lynne Kues 13 years ago.
6662_4.patch (1.5 KB) - added by Garry Yao 13 years ago.
6662_5.patch (2.6 KB) - added by Garry Yao 13 years ago.
6662_6.patch (2.3 KB) - added by Garry Yao 13 years ago.

Download all attachments as: .zip

Change History (37)

Changed 14 years ago by Satya Minnekanti

Attachment: This is a line of text.doc added

Changed 14 years ago by Satya Minnekanti

comment:1 Changed 14 years ago by Garry Yao

Component: GeneralCore : Pasting
Keywords: Firefox added
Milestone: CKEditor 3.4.3
Status: newconfirmed

Two issues are all due to a recent Firefox update that cause list paste stops working now, we're still under investigation.

comment:2 Changed 14 years ago by Tobiasz Cudnik

Owner: set to Tobiasz Cudnik
Status: confirmedassigned

comment:3 Changed 14 years ago by Garry Yao

Bug is reported at Mozilla.

Changed 14 years ago by Tobiasz Cudnik

Attachment: 6662.patch added

comment:4 Changed 14 years ago by Tobiasz Cudnik

Status: assignedreview

This patch fixes attached TC and 2 different ones i've checked. It tries to reuse existing filter mechanisms to reduce new code size.

Additionally one list merging bug has been fixed (L412).

Changed 13 years ago by Garry Yao

Attachment: 6662.docx added

comment:5 Changed 13 years ago by Garry Yao

Status: reviewreview_failed

The structure detecting approach proposed by the patch is quite unstable, attaching the document that doesn't work with it.

Changed 13 years ago by Tobiasz Cudnik

Attachment: 6662_2.patch added

comment:6 Changed 13 years ago by Tobiasz Cudnik

Status: review_failedreview

The margin-to-indentation logic causes problems with the attached document. I've aligned a list creation way with a list destruction, so now we have better results, although it's still not perfect.

Changed 13 years ago by Tobiasz Cudnik

Attachment: 6662_3.patch added

comment:7 Changed 13 years ago by Tobiasz Cudnik

I've added support for the "MsoListParagraph" class, which lack of caused problems with Office 2010, although i can't yet check it, as i'm missing access to this version. But it should work.

comment:8 Changed 13 years ago by Garry Yao

Keywords: HasPatch added
Milestone: CKEditor 3.4.3CKEditor 3.5.1

We should hold with this ticket as we've already had active communication result from Mozilla on this issue and it has a high possibility of getting fixed by them.

comment:9 Changed 13 years ago by Garry Yao

Status: reviewreview_failed

As the fix is already landed on MineField, we should simply add one code path to detect "mso-list:Ignore" as in what we did in IE.

comment:10 Changed 13 years ago by Lynne Kues

Cc: james c lynne_kues@… added; James removed

Changed 13 years ago by Lynne Kues

Attachment: bullets.docx added

comment:11 Changed 13 years ago by Lynne Kues

In addition to list items being transformed to <p> tags, we are also seeing issues with margins not being preserved and bullets not transforming properly. Open the bullets.docx attachment, select all, copy, paste into FF editor. List item margins are not maintained, bullets are not transformed properly. FF 3.6.12. If this is not the same issue, let me know, and I will open a separate defect. Thanks.

comment:12 Changed 13 years ago by Tobiasz Cudnik

I cannot verify that this has been fixed in FF 3.6.14 pre, i think we still need a patch if this won't be included in 3.x release line.

@lynne_kues: your problems and included TC doc seems related to this one.

Changed 13 years ago by Garry Yao

Attachment: 6662_4.patch added

comment:13 Changed 13 years ago by Garry Yao

Owner: changed from Tobiasz Cudnik to Garry Yao
Status: review_failedreview

I cannot verify that this has been fixed in FF 3.6.14 pre,

The Mozilla fix arrives in only FF4, and this regression works fine before FF3.6, so I guess the best option for us is just to have a patch for FF4.

comment:14 Changed 13 years ago by Wiktor Walc

Milestone: CKEditor 3.5.1CKEditor 3.5.2

Just a note that the third patch provided by Tobiasz does not work with bullets.docx.

comment:15 Changed 13 years ago by Sa'ar Zac Elias

Status: reviewreview_passed

comment:16 Changed 13 years ago by Garry Yao

Keywords: HasPatch removed
Resolution: fixed
Status: review_passedclosed

Fixed with [6545], hopefully we have FF4 very soon.

comment:17 Changed 13 years ago by Satya Minnekanti

This issue is not fixed. I could still reproduce the issues on nightly build.

comment:18 Changed 13 years ago by Frederico Caldeira Knabben

Resolution: fixed
Status: closedreopened

Having this fixed for FF4 only is not a solution. FF3 will still be with us for some good time.

Changed 13 years ago by Garry Yao

Attachment: 6662_5.patch added

comment:19 in reply to:  7 Changed 13 years ago by Garry Yao

Status: reopenedreview

Replying to tobiasz.cudnik:

I've added support for the "MsoListParagraph" class...

Let's consider this a fall back approach for FF3.6.

comment:20 Changed 13 years ago by Frederico Caldeira Knabben

Status: reviewreview_failed

It's nice to see that a FF3 workaround was not so hard to have. At least for basic support.

There is just one issue with the patch though. We have an empty try/catch at line 1133 now. I think it's by mistake.

Changed 13 years ago by Garry Yao

Attachment: 6662_6.patch added

comment:21 Changed 13 years ago by Garry Yao

Status: review_failedreview

comment:22 Changed 13 years ago by Frederico Caldeira Knabben

Status: reviewreview_passed

comment:23 Changed 13 years ago by Garry Yao

Resolution: fixed
Status: review_passedclosed

Fixed with [6585].

comment:24 Changed 13 years ago by Satya Minnekanti

This issue is still reproducible on latest version of firefox 3.6.15 or 3.6.16. Could you please re open this ticket

comment:25 Changed 13 years ago by Garry Yao

As said it's not a fully functional solution on FF3.x, please open new tickets for any other findings instead.

comment:26 Changed 10 years ago by Frederico Caldeira Knabben

Component: Core : PastingPlugin : Paste from Word
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