Ticket #6241 (closed Bug: wontfix)

Opened 17 months ago

Last modified 14 months ago

[[IE]] some format is lost during paste

Reported by: satya Owned by: paho
Priority: Normal Milestone:
Component: Core : Pasting Version:
Keywords: IBM IE Firefox Opera Cc: damo, joek, jamcunni@…

Description

To reproduce the defect:

  1. Open Ajax sample.
  1. Copy the text in the attached doc and paste it using Paste from Word dialog.

see the differences in IE and FF.

In IE text is shown with out bold and with small font size wher as in FF it is shown properly.

Attachments

Sample word doc.docx Download (11.7 KB) - added by satya 17 months ago.
Pasted text shown in FF.jpg Download (21.1 KB) - added by satya 17 months ago.
Pasted text shown in IE.jpg Download (13.7 KB) - added by satya 17 months ago.
krst_13.34.02.png Download (47.6 KB) - added by krst 17 months ago.
6241.patch Download (689 bytes) - added by paho 16 months ago.
Patch

Change History

Changed 17 months ago by satya

Changed 17 months ago by satya

Changed 17 months ago by satya

Changed 17 months ago by krst

comment:1 Changed 17 months ago by krst

  • Keywords IE Firefox Opera added
  • Status changed from new to confirmed

Formating is also lost in Firefox and Opera

comment:2 Changed 16 months ago by paho

  • Owner set to paho
  • Status changed from confirmed to assigned

comment:3 Changed 16 months ago by paho

@satya: Are you sure that names of the attachments are correct? I have opposite results using IE and FF. But anyway, the problem still exists.

The text pasted from word is not bolded, because in attached word document there is also no bolded text. But when I bold some text in word, it works in IE, FF, Opera, Chrome.

I can reproduce only issue connected with font size. It works in IE, but doesn't work in Opera, FF, Chrome.

I've noticed some strange behaviours:

  1. This issue exists only when the font size in word is set to 26. When you set any other size, everything works fine.
  1. When you set font size to 26 in word, text pasted from word (before any filtering or processing in ckeditor) is missing information about font size. Only in IE there is a tag: <FONT size=7>. But when you set font size lower or higher than 26, after pasting from word, in every browser there is information about font size: 'FONT-SIZE: 36pt'.

Changed 16 months ago by paho

Patch

comment:4 Changed 16 months ago by paho

If font size is not set it means that font size is 26pt. Using this strange behaviour I create patch that fix this issue.

comment:5 Changed 16 months ago by paho

  • Status changed from assigned to review

comment:6 Changed 16 months ago by garry.yao

  • Status changed from review to review_failed

It's not good, we should apply '26pt' in case <FONT size=7> is found instead, also note that font size is presented only if both of the following entires are configured.

	config.pasteFromWordRemoveStyles = false;
	config.pasteFromWordRemoveFontStyles = false;

comment:7 Changed 16 months ago by paho

For now, as a solution and fix for IE, set flags in config.js file to:

config.pasteFromWordRemoveStyles = false;
config.pasteFromWordRemoveFontStyles = false;

It should work.

There is still some small problem in FF (with font-size), but after investigation, I've noticed that it depends on platform. It might happen that /* Style Definitions */ in metainfo pasted from word is different on various platform. It won't be fixed now.

comment:8 Changed 16 months ago by paho

  • Status changed from review_failed to closed
  • Resolution set to wontfix

comment:9 Changed 16 months ago by james c

  • Cc jamcunni@… added

comment:10 Changed 14 months ago by damo

Why was this ticket closed as wontfix?

Note: See TracTickets for help on using tickets.
© 2003 – 2011 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy