Opened 16 years ago

Last modified 16 years ago

#2775 closed Task

Implement Paste from Word dialog — at Version 3

Reported by: Garry Yao Owned by:
Priority: Normal Milestone: CKEditor 3.0
Component: Core : Output Data Version: SVN (FCKeditor) - Retired
Keywords: Confirmed Review+ Cc:

Description (last modified by Martin Kou)

This bug cause comments tag content being inserted as codes when switch to 'source' mode after pasting MS-WORD(2003) documents which always contents IE-targeted conditional comments.

  1. Open an editor instance with 'source' mode and paste the content of attachment 'msword-comments-doc' into 'wysiwyg' mode.
  2. Switch to 'source' mode
    • Expected: 'source' mode contains correct content markups.
    • Actual: 'source' mode contains comment tag inner content.

Edit (2009-01-16): This is actually a missing feature.

Change History (4)

Changed 16 years ago by Garry Yao

Attachment: msword-comments-doc.doc added

reproducing attachment

comment:1 Changed 16 years ago by Martin Kou

Component: GeneralCore : Output Data

comment:2 Changed 16 years ago by Martin Kou

Summary: plugin:htmlparser didn't exclude comments tags from input streamscore:htmlparser didn't exclude comments tags from input streams

comment:3 Changed 16 years ago by Martin Kou

Description: modified (diff)
Summary: core:htmlparser didn't exclude comments tags from input streamsImplement Paste from Word dialog
Type: BugTask

Do you mean these things left in the beginning of the HTML output?

Normal 0  0 2  false false false               MicrosoftInternetExplorer4         /* Style Definitions */ table.MsoNormalTable {mso-style-name:"Table Normal"; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-style-noshow:yes; mso-style-parent:""; mso-padding-alt:0cm 5.4pt 0cm 5.4pt; mso-para-margin:0cm; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:10.0pt; font-family:"Times New Roman"; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400;}

These are actually fragments of <style> and <meta> contents pasted from MS Word. We have a "Paste from Word" dialog in v2 for cleaning up these things, but it isn't ported to v3, yet. So it's not a bug, but rather a missing feature.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy