Ticket #6241 (closed Bug: wontfix)
[[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:
- Open Ajax sample.
- 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
Change History
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: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:
- This issue exists only when the font size in word is set to 26. When you set any other size, everything works fine.
- 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'.
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: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:10 Changed 14 months ago by damo
Why was this ticket closed as wontfix?

