Multiple nested lists and PasteFromWord
|Reported by:||wizardjojo||Owned by:|
|Component:||Plugin : Paste from Word||Version:||3.6.1|
Description (last modified by j.swiderski)
When you use the PasteFromWord Command on multiple nested lists, only the first nested list is really nested after pasting.
<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>
on the ckeditor demo
Put the code and then copy and pastefromWord, you'll lose the second ol
I tried to fix it for my webapp and found a way. I hope i didn't break anything by doing that.
In the flattenList filter in default.js line 418 (in ckeditor 3.6.1) i just did the following code : children = element.children so that the global loop takes in acount the flattened ol/ul. Otherwise the increase of level is lost.
Change History (5)
comment:1 Changed 5 years ago by j.swiderski
- Description modified (diff)
- Keywords Firefox added; PasteFromWord removed
- Status changed from new to confirmed
comment:3 Changed 3 years ago by fredck
- Component changed from Core : Pasting to Plugin : Paste from Word
comment:4 Changed 5 months ago by Tade0
- Resolution set to fixed
- Status changed from confirmed to closed