#7131 closed Bug (fixed)
Copy/Paste Word List should preserve list properties
Reported by: | Lynne Kues | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.5.3 |
Component: | Plugin : Paste from Word | Version: | 3.1 |
Keywords: | IBM | Cc: | satya_minnekanti@…, jamcunni@… |
Description (last modified by )
Copy a list formatted as follows from Word. Paste into CKEditor.
A. Test B. Test C. Test a. 111 b. 111 c. 1111 F. test
The list properties (i.e., number type, start number) are not preserved. The <liststyle> plugin supports these properties and should preserve these on paste.
Attachments (10)
Change History (41)
comment:1 Changed 14 years ago by
Keywords: | IBM added |
---|
comment:2 Changed 14 years ago by
Version: | → 3.5.1 |
---|
comment:3 Changed 14 years ago by
Component: | General → Core : Pasting |
---|---|
Description: | modified (diff) |
Status: | new → confirmed |
Version: | 3.5.1 → 3.1 |
comment:4 Changed 14 years ago by
Cc: | satya_minnekanti@… added |
---|
Changed 14 years ago by
Attachment: | 7131.patch added |
---|
comment:5 Changed 14 years ago by
Owner: | set to Garry Yao |
---|---|
Status: | confirmed → review |
Expecting the following result simply because in-consequent numbering is not well supported in CSS:
A.dddd B.dddd C.dddd a.dddd b.dd c.dd D.ddddd
comment:6 Changed 14 years ago by
New patch addresses most of the current pains from list pasting:
- Using "value" attribute (on list item) to present inconsequent list numbering, though it's currently deprecated on XHTML1.0 strict.
- "list-style-type" pulled up to list root node when possible.
Changed 14 years ago by
Attachment: | 7131_2.patch added |
---|
comment:7 follow-up: 8 Changed 14 years ago by
The "value" attribute is copied to the next list item when adding a new entry to the list. In the attached test case, the last item "F" is duplicated when creating more list items:
A. Test B. Test C. Test a. 111 b. 111 c. 1111 F. test F. test F. test
comment:8 Changed 14 years ago by
Replying to wwalc:
The "value" attribute is copie...
As a enter key issue is encountered here, let's leave this a separate ticket.
comment:10 follow-up: 12 Changed 14 years ago by
Status: | review → review_failed |
---|
With FF, the patch makes no difference and the list is not pasted as a list.
With IE, it's much better, but still not perfect. I'll add a new TC file that reflects the reporter TC. Empty D and E items are also added.
comment:11 Changed 14 years ago by
The following file fails to be parsed: http://dev.ckeditor.com/attachment/ticket/6662/This%20is%20a%20line%20of%20text.doc
comment:12 follow-up: 13 Changed 14 years ago by
Status: | review_failed → review |
---|
Replying to fredck:
With FF, the patch makes no difference and the list is not pasted as a list.
#6662 has to be checked.
With IE, it's much better, but still not perfect. I'll add a new TC file that reflects the reporter TC. Empty D and E items are also added.
It's interesting how you created that list but you've just cheated IE, other browsers works just well, so, an IE bug.
Replying to Saare: WFM in both IE and FF4?
comment:13 Changed 14 years ago by
Status: | review → review_failed |
---|
Replying to garry.yao:
#6662 has to be checked.
At this point #6662 needs to be fully fixed first, otherwise we're not able to check this ticket with FF.
It's interesting how you created that list but you've just cheated IE, other browsers works just well, so, an IE bug.
I've just used the only feature I've found in Word to continue the list from a different counting number: Right-Click the list item > Set Numbering Value... > Check Continue from previous List > Check Advance value (skip numbers ) > Set value to: F
.
It looks like MS Word sends the skipped items as well. Is there any chance for us to identify and ignore them?
comment:14 Changed 14 years ago by
It looks like there's no way to tell the difference with plain empty list bullet, see if others get some idea.
comment:15 Changed 14 years ago by
Status: | review_failed → review |
---|
Ask for another review as #6662 is now fixed.
I've just used the only feature I've found in Word to continue the list from a different counting number...
If you check the ticket TC doc file, it doesn't have this issue, so it looks like there's something to do with the way of editing the list, anyway I don't think we can find a solution here.
comment:17 Changed 14 years ago by
Status: | review → review_failed |
---|
comment:18 Changed 14 years ago by
Cc: | jamcunni@… added |
---|
Changed 14 years ago by
Attachment: | 7131_3.patch added |
---|
comment:19 Changed 14 years ago by
Status: | review_failed → review |
---|
@Saare, You're awesome, I neglected that!
comment:20 follow-up: 21 Changed 14 years ago by
Status: | review → review_failed |
---|
- Seems like FF also adds the D,E bullets, are we able to fix it there?
- Seems like this file does not work in FF.
- Attaching another document that fails parsing.
Changed 14 years ago by
Attachment: | 7131_3.docx added |
---|
Changed 14 years ago by
Attachment: | 7131_4.patch added |
---|
comment:21 Changed 14 years ago by
Status: | review_failed → review |
---|
Replying to Saare:
- Seems like FF also adds the D,E bullets, are we able to fix it there?
I figured it out, yes it affects all browsers actually, that the empty list bullets issue only persist if you check "Continue from previous List" but not "Start new list" in the list numbering dialog;
- Seems like this file does not work in FF.
It's fixed now.
- Attaching another document that fails parsing.
This's another story, where we have two lists that are too close (without any break to denote they're two ;/ ), I've added another routine to deal with it.
Changed 14 years ago by
Attachment: | 7131_5.patch added |
---|
comment:22 Changed 14 years ago by
Caught by Wiktor:
- List bullet pattern like (2) are not well handled;
- Fixing redundant list item numbering.
comment:23 Changed 14 years ago by
Status: | review → review_failed |
---|
Something might be still wrong here:
'cke:listsymbol' is null or not an object
when pasting documents from #7209
comment:24 Changed 14 years ago by
Status: | review_failed → review |
---|
comment:25 Changed 14 years ago by
Status: | review → review_failed |
---|
IE8 now shows an internal error when using the following example: http://dev.ckeditor.com/attachment/ticket/6570/ordered_list.docx (it did not happen in 3.5.2, the list properties were not recognized properly in 3.5.2, but the error didn't occur)
The JavaScript error is:
'0' is null or not an object, default.js line 220
Changed 14 years ago by
Attachment: | 7131_6.patch added |
---|
comment:26 Changed 14 years ago by
Status: | review_failed → review |
---|
comment:27 Changed 14 years ago by
Status: | review → review_failed |
---|
With the attached patch IE8 now throws an alert message with the following document: list-test.doc from #1457
'undefined' is null or not an object default.js, line 643 character 8
comment:28 Changed 14 years ago by
(Just a note that I could not find any other issues while checking this patch)
Changed 14 years ago by
Attachment: | 7131_7.patch added |
---|
comment:29 Changed 14 years ago by
Status: | review_failed → review_passed |
---|
New patch fixes the error. FF 3.6 will still produce incorrect result:
<ol> <li> one</li> <li> two <ol style="list-style-type: lower-alpha;"> <li> AAA</li> <li> BBB</li> </ol> </li> </ol> <p style="margin-left: 108pt;"> i. III</p> <p style="margin-left: 108pt;"> ii. IIII</p> <ol style="list-style-type: lower-alpha;"> <li value="3"> CCC</li> <li> three</li> </ol>
But this is because we have no clear indication of list items there:
<p class="MsoNormal" style="margin-left: 108pt; text-indent: -108pt;"><span style=""><span style=""><span style="font: 7pt "Times New Roman";"> </span>i.<span style="font: 7pt "Times New Roman";"> </span></span></span><span dir="LTR"></span>III</p> <p class="MsoNormal" style="margin-left: 108pt; text-indent: -108pt;"><span style=""><span style=""><span style="font: 7pt "Times New Roman";"> </span>ii.<span style="font: 7pt "Times New Roman";"> </span></span></span><span dir="LTR"></span>IIII</p>
FF4 works, and at least we got no error.
R+ for me as for other cases, please give the latest patch your review.
@Garry, this is a wonderful enhancement, congratulations.
comment:30 Changed 14 years ago by
Resolution: | → fixed |
---|---|
Status: | review_passed → closed |
Fixed with [6616], thanks for the throughly review.
comment:31 Changed 11 years ago by
Component: | Core : Pasting → Plugin : Paste from Word |
---|
Pasting under IE - result in WYSIWYG