Opened 16 years ago

Closed 13 years ago

#2436 closed Bug (worksforme)

Bold / italic formatted spaces copied from Word are stripped out

Reported by: Steve Harwood Owned by:
Priority: Normal Milestone:
Component: Project : MediaWiki+FCKeditor Version: FCKeditor 2.6.3
Keywords: HasPatch Cc: simon.bruce@…, Steve Harwood

Description

See attached MS Word file, where a space between two words has been formatted as bold (but the words aren't bold themselves).

  1. Copy the paragraph from Word.
  2. Paste into FCKEditor using "Paste from Word"
  3. "Ignore Font Face definitions" and "Remove Styles definitions" are both checked.
  4. Result: <p><div>This is atest</div></p> (the space has been stripped out)

Tested in IE7 and Firefox 3, using Windows XP and Word 2003.

Attachments (2)

TestDoc.doc (19.5 KB) - added by Steve Harwood 16 years ago.
fck_paste.diff (882 bytes) - added by Simon Beasley 16 years ago.
Diff file that works for us.

Download all attachments as: .zip

Change History (7)

Changed 16 years ago by Steve Harwood

Attachment: TestDoc.doc added

Changed 16 years ago by Simon Beasley

Attachment: fck_paste.diff added

Diff file that works for us.

comment:1 Changed 16 years ago by Simon Beasley

I've added a diff file that works for us. I hope this is useful.

I changed the code so that it changes any blank tag with white space in it (eg "<b> </b>" to be a single space and any blank tag without space in it to be simply a blank string (so "<b></b>" would be converted to "").

comment:2 Changed 16 years ago by Simon Beasley

Cc: simon.bruce@… added

comment:3 Changed 16 years ago by Steve Harwood

Cc: Steve Harwood added

comment:4 Changed 16 years ago by Artur Formella

Keywords: Confirmed added

comment:5 Changed 13 years ago by Krzysztof Studnik

Keywords: HasPatch added
Resolution: worksforme
Status: confirmedclosed

FCKEditor + MediaWiki is no longer supported

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