#3959 closed Bug (fixed)
[FF] Pasting content from Word causes problems
| Reported by: | Damian | Owned by: | Garry Yao |
|---|---|---|---|
| Priority: | Normal | Milestone: | CKEditor 3.0 |
| Component: | Plugin : Paste from Word | Version: | 3.0 RC |
| Keywords: | Firefox Confirmed IBM Review+ | Cc: |
Description
When pasting content from a Word document that happens to have a date field the content styles are displayed incorrectly. The height of the text is incorrect and results in excessive overlapping (see attached example).
Also, the table in the provided word document is removed.
The incorrect font styles and the removed table issue only occur in FF. IE is working well.
To reproduce:
- Open a nightly sample
- Copy the whole contents of the Test_doc_with_date.doc
- Use paste from Word dialog to paste the whole contents with default settings
Using the same document with the date field removed fixes the style issue (see Test_doc_without_date.doc), although the table is still removed.
Pasting directly into the content area preserves the table.
Attachments (5)
Change History (12)
Changed 8 years ago by
| Attachment: | Test_doc_with_date.doc added |
|---|
Changed 8 years ago by
| Attachment: | ExampleWithDateField.png added |
|---|
Changed 8 years ago by
| Attachment: | Test_doc_without_date.doc added |
|---|
comment:1 Changed 8 years ago by
| Keywords: | Firefox Confirmed added |
|---|---|
| Owner: | set to Garry Yao |
| Status: | new → assigned |
Changed 8 years ago by
| Attachment: | 3959.patch added |
|---|
comment:2 Changed 8 years ago by
| Keywords: | Review? added |
|---|
comment:3 Changed 8 years ago by
| Keywords: | Review- added; Review? removed |
|---|
The previous fixing is incorrect, since it's the single-quote within IE conditional comments which cause the problem, double-quote is guaranteed outside.
<!--[if supportFields]> <span style='mso-element:field-separator'> <![endif]-->
Changed 8 years ago by
| Attachment: | 3959_2.patch added |
|---|
comment:4 Changed 8 years ago by
| Keywords: | Review? added; Review- removed |
|---|
comment:5 Changed 8 years ago by
| Keywords: | Review+ added; Review? removed |
|---|---|
| Milestone: | → CKEditor 3.0 |
comment:7 Changed 3 years ago by
| Component: | General → Plugin : Paste from Word |
|---|

The following MS-Word content which cause the problem, where the single-quote is not processed correctly by the cleaner.