Opened 9 years ago

Closed 8 months ago

Last modified 8 months ago

#2507 closed Bug (fixed)

PasteFromWord doesn't detect pasting part of paragraph

Reported by: kassen Owned by:
Priority: Normal Milestone: CKEditor 4.6.0
Component: Plugin : Paste from Word Version:
Keywords: Cc:

Description

IE7, WinXP, FCKEditor 2.6.3

When copying text from MS Word to paste into FCKe, the AutoDetect function won't detect it if it's only text from part of a paragraph (i.e. no line breaks). If I copy the entire paragraph and ctrl+V, the AutoDetect activates.

Attachments (1)

fcktest.doc (24.5 KB) - added by kassen 9 years ago.

Download all attachments as: .zip

Change History (7)

Changed 9 years ago by kassen

comment:1 Changed 9 years ago by arczi

  • Keywords Pending added

I think there is no point in detecting it as a text from Word. The text formatting is not changed.

comment:2 follow-up: Changed 9 years ago by fredck

  • Keywords Confirmed added; Pending removed

The content should be cleaned anyway... the following is what I'm having when posting just a few words:

<p><span lang="EN-GB" style="font-size: 12pt; font-family: &quot;Times New
Roman&quot;; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-GB;
mso-fareast-language: SV; mso-bidi-language: AR-SA">declared a Tiger </span></p>

All that "mso-" stuff should be cut out.

The fact is that word is not sending enough information for us to detect the content source. I mean, enough for the current detection implementation, as the "mso-" styles could also help us detecting it.

comment:3 in reply to: ↑ 2 Changed 9 years ago by kassen

Replying to fredck:

The content should be cleaned anyway... the following is what I'm having when posting just a few words:

<p><span lang="EN-GB" style="font-size: 12pt; font-family: &quot;Times New
Roman&quot;; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-GB;
mso-fareast-language: SV; mso-bidi-language: AR-SA">declared a Tiger </span></p>

All that "mso-" stuff should be cut out.

The fact is that word is not sending enough information for us to detect the content source. I mean, enough for the current detection implementation, as the "mso-" styles could also help us detecting it.

I think this was my original idea as well. These "tags" could mess up further processing along the line. If you are able to include them in the detection, it would be great.

comment:4 Changed 3 years ago by fredck

  • Component changed from General to Plugin : Paste from Word

comment:5 Changed 8 months ago by Tade0

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

Fixed with new Paste From Word plugin in 4.6.0.

comment:6 Changed 8 months ago by Anna

  • Milestone set to CKEditor 4.6.0
Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy