Opened 9 years ago
Closed 9 years ago
#16745 closed Bug (fixed)
[Edge] List items are lost when pasted from word
| Reported by: | Marek Lewandowski | Owned by: | Tade0 |
|---|---|---|---|
| Priority: | Nice to have (we want to work on it) | Milestone: | CKEditor 4.6.2 |
| Component: | Plugin : Paste from Word | Version: | |
| Keywords: | Support | Cc: |
Description
Use attached .docx file.
- Open CKEditor
samples/index.html. - Open the attached docx file (I did it with Word 365).
- Select all the content in Word and copy it to the clipboard.
- Go back to CKEditor, focus it and paste.
Expected result
List items are not lost.
Actual result
List items are stripped.
Other details (browser, OS, CKEditor version, installed plugins)
Word 365
Attachments (1)
Change History (8)
comment:1 Changed 9 years ago by
| Keywords: | Support added |
|---|---|
| Status: | new → confirmed |
Changed 9 years ago by
| Attachment: | MixedListsAndParagraphs.docx added |
|---|
comment:2 Changed 9 years ago by
comment:3 Changed 9 years ago by
| Milestone: | → CKEditor 4.6.2 |
|---|
comment:4 Changed 9 years ago by
| Owner: | set to Tade0 |
|---|---|
| Status: | confirmed → assigned |
comment:5 Changed 9 years ago by
Problem here is that lists recognized as pasted from Word are converted in the filter into an internal representation familiar to the functions that process it afterwards.
This converting procedure, when encountering a simple HTML list without Word-specific markup removes it entirely.
comment:6 Changed 9 years ago by
This ticket requires ticket:16682 to be merged to master before proceeding.
comment:7 Changed 9 years ago by
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
After fixing #16682, and rebasing current branch:t/16745 onto master it works well.
- Added manual test.
- Reused all the
CKEDITOR.tools.arraygoodies.
Fixed with git:d853cbd.

I've pushed branch:t/16745 with a fixture and failing test for this.