#7872 closed Bug (fixed)
two-level list pasted from word gets flattened or split
Reported by: | Jakub Ś | Owned by: | Garry Yao |
---|---|---|---|
Priority: | Normal | Milestone: | CKEditor 3.6.1 |
Component: | Plugin : Paste from Word | Version: | 3.6.1 |
Keywords: | Cc: | satya_minnekanti@… |
Attachments (2)
Change History (15)
Changed 14 years ago by
comment:1 Changed 14 years ago by
Status: | new → confirmed |
---|
comment:2 Changed 14 years ago by
Cc: | satya_minnekanti@… added |
---|
comment:3 Changed 14 years ago by
Milestone: | → CKEditor 3.6.1 |
---|
comment:4 Changed 14 years ago by
Status: | confirmed → pending |
---|
comment:5 Changed 14 years ago by
IE8 / Win 7
http://nightly.ckeditor.com/7007/_samples/ajax.html
Select the first list and opy it into CKEditor, results on my computer:
(trunk)
<ul> <li> item1 <ol> <li> item11</li> <li> item12</li> <li> item13</li> </ol> </li> </ul>
CKEditor 3.6
<ul> <li> item1 <ol> <li> item11</li> <li> item12</li> <li> item13</li> </ol> </li> <li> item2</li> <li> item3</li> </ul>
(the last two items are lost)
Select and copy the second list, the result is:
(trunk)
<ol> <li> item1</li> <li> item2</li> </ol> <ul> <li> item21</li> <li> item22</li> <li> item23 <ol> <li value="3"> item3</li> <li value="4"> item4</li> </ol> </li> </ul> <ul> <li> item41</li> <li> item42</li> </ul>
CKEditor 3.6:
<ol> <li> item1</li> <li> item2</li> </ol> <ul> <li> item21</li> <li> item22</li> <li> item23</li> </ul> <ol> <li value="3"> item3</li> <li value="4"> item4</li> </ol> <ul> <li> item41</li> <li> item42</li> </ul>
item3
and item
4 are now indented.
comment:6 Changed 14 years ago by
Status: | pending → confirmed |
---|
comment:7 Changed 14 years ago by
Owner: | set to Garry Yao |
---|---|
Status: | confirmed → assigned |
comment:8 Changed 14 years ago by
Status: | assigned → review |
---|
There's a logic whole in the list flatting logic which cause some list items lost.
Note that the second list in TC is not related to this ticket which is a limitation we always had.
Changed 14 years ago by
Attachment: | 7872.patch added |
---|
comment:9 Changed 14 years ago by
In revision [6914] the first list from the TC was flattened. Now the last item is removed from it.
About second list: I don't know and remember why I have placed it in that TC as it's a different issue. The second example worked till version 3.5.2 for all browsers except Firefox (3.6 and 4). From version 3.5.3 rev [6616] list gets split in all browsers (except FF3.6). I have created a ticket for the second example from TC.
comment:11 Changed 14 years ago by
Status: | review → review_passed |
---|
comment:12 Changed 14 years ago by
Component: | General → Core : Pasting |
---|---|
Resolution: | → fixed |
Status: | review_passed → closed |
Fixed with [7008].
comment:13 Changed 11 years ago by
Component: | Core : Pasting → Plugin : Paste from Word |
---|
In which browser do you have it? What's the pasting result of the output?