#13634 closed Bug (wontfix)
Headers fomatted as lists are not pasting properly from word
Reported by: | Brant | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Plugin : Paste from Word | Version: | |
Keywords: | Cc: |
Description
Steps to reproduce
- Copy and paste the contents of example.docx (Attached to ticket) into a CKEditor instance.
Expected result
The second header should be it's own list
Actual result
The second header is appended to the end of the list above it (See attached screen shot)
Other details (browser, OS, CKEditor version, installed plugins)
Google Chrome, OSX, 4.5.2
Attachments (2)
Change History (5)
Changed 10 years ago by
Attachment: | example.docx added |
---|
Changed 10 years ago by
Attachment: | screenshot.png added |
---|
comment:1 Changed 10 years ago by
Resolution: | → wontfix |
---|---|
Status: | new → closed |
Version: | 4.5.2 |
comment:2 Changed 10 years ago by
To confirm, this issue is due to an incompatibility on how MS Word handles lists and how HTML handles lists?
comment:3 Changed 10 years ago by
One thing is that MS Word and HTML have different capabilities. It definitely won't be able to represent some MS Word documents' semantic in HTML.
Second thing is what MS Word puts into clipboard when copying from it. This isn't even HTML... this is some non semantic mess. It's very hard to reason based on what we get so even if there's some (deeply hidden) sense in that HTML I posted in comment:1 we will not be interested in mining for it. This would be very time consuming and the result could not be satisfactory (if there would be any) because of what I wrote above – the difference in semantics.
This is the HTML that CKEditor is dealing with:
Looking at it I can say that it is hard to imagine some better result than what CKEditor achieves:
The thing that should mark list items in the Word's messy HTML are the mso-list styles. And they present this way:
No sense at all. The only thing CKEditor can do is to turn every Word's pseud-paragraph which has this style into a list item.