Ticket #3959 (closed Bug: fixed)

Opened 5 years ago

Last modified 10 months ago

[FF] Pasting content from Word causes problems

Reported by: damo 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:

  1. Open a nightly sample
  2. Copy the whole contents of the Test_doc_with_date.doc
  3. 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

Test_doc_with_date.doc (103.5 KB) - added by damo 5 years ago.
ExampleWithDateField.png (271.2 KB) - added by damo 5 years ago.
Test_doc_without_date.doc (103.0 KB) - added by damo 5 years ago.
3959.patch (1.1 KB) - added by garry.yao 5 years ago.
3959_2.patch (1.5 KB) - added by garry.yao 5 years ago.

Change History

Changed 5 years ago by damo

Changed 5 years ago by damo

Changed 5 years ago by damo

comment:1 Changed 5 years ago by garry.yao

  • Status changed from new to assigned
  • Keywords Firefox Confirmed added
  • Owner set to garry.yao

Changed 5 years ago by garry.yao

comment:2 Changed 5 years ago by garry.yao

  • Keywords Review? added

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

<span style='mso-element:field-separator'>

comment:3 Changed 5 years ago by garry.yao

  • 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 5 years ago by garry.yao

comment:4 Changed 5 years ago by garry.yao

  • Keywords Review? added; Review- removed

comment:5 Changed 5 years ago by fredck

  • Keywords Review+ added; Review? removed
  • Milestone set to CKEditor 3.0

comment:6 Changed 5 years ago by garry.yao

  • Status changed from assigned to closed
  • Resolution set to fixed

Fixed with [3929].

comment:7 Changed 10 months ago by fredck

  • Component changed from General to Plugin : Paste from Word
Note: See TracTickets for help on using tickets.
© 2003 – 2012 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy