#6241 closed Bug (wontfix)
[[IE]] some format is lost during paste
Reported by: | Satya Minnekanti | Owned by: | Paweł Horzela |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Plugin : Paste from Word | Version: | |
Keywords: | IBM IE Firefox Opera | Cc: | Damian, 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 (5)
Change History (18)
Changed 13 years ago by
Attachment: | Sample word doc.docx added |
---|
Changed 13 years ago by
Attachment: | Pasted text shown in FF.jpg added |
---|
Changed 13 years ago by
Attachment: | Pasted text shown in IE.jpg added |
---|
Changed 13 years ago by
Attachment: | krst_13.34.02.png added |
---|
comment:1 Changed 13 years ago by
Keywords: | IE Firefox Opera added |
---|---|
Status: | new → confirmed |
comment:2 Changed 13 years ago by
Owner: | set to Paweł Horzela |
---|---|
Status: | confirmed → assigned |
comment:3 Changed 13 years ago by
@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 13 years ago by
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 13 years ago by
Status: | assigned → review |
---|
comment:6 Changed 13 years ago by
Status: | review → 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 13 years ago by
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 13 years ago by
Resolution: | → wontfix |
---|---|
Status: | review_failed → closed |
comment:9 Changed 13 years ago by
Cc: | jamcunni@… added |
---|
comment:11 Changed 11 years ago by
Why wont this issue be fixed?
Please share with the community a justifiable and logical reason why this font size and style doesn't carry from MS Word to CK.
I cannot express how frustrating this problem is. You have 10's (if not hundreds) of thousands of end users who use Microsoft Office and have no engineering experience to sift through this kind of technical detail to determine a suitable solution other than brutal trial and error and painstaking transition to format documents from within the UI of CK editor. It doesn't always retain formatting from one editing session to the next and it isn't as WYSIWYG as you might think for those who think Ajax is for the kitchen.
The paste from word option doesn't really work as an alternative workaround for formatting consistency. I have made all the excuses in the book - converting from Microsoft formatting to HTML formatting is no different than users converting an OCR document, or from Word Perfect to Word...there simply are formatting differences that wont carry forward in the paste to CK. That only works for a few years. Now the problem is huge, well known, without answer. It appears more like negligence and deliberate disregard for developer to user respect.
Font sizes and style should retain or have a justifiable reason why they can't. Please share with the community a justifiable and logical reason why this font size and style doesn't carry from MS Word to CK.
Thank you.
comment:12 Changed 11 years ago by
- First of all you should use in config.js or instance configuration below settings. They are set to true by default. Please see http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-pasteFromWordRemoveStyles
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-pasteFromWordRemoveFontStyles.
Please also note that there is no error with configuration option - this is what they are for you can set them or not.config.pasteFromWordRemoveStyles = false; config.pasteFromWordRemoveFontStyles = false;
- Please also note that In all cases, the editor privileges semantics over formatting, so the end results will never look like the original.
CKEditor makes it best to translate the information send from Word through the clipboard and many times it needs to come to an agreement. In those cases we prioritize semantics instead of formatting.
In plain words - you have two different worlds: Desktop MS Word which uses styled paragraphs and spans for everything plus sometimes custom MS specific styles and Browser CKEditor which has to follow strict HTML guide lines which as you well know doesn't have to be the same (and aren’t) as in desktop.
comment:13 Changed 10 years ago by
Component: | Core : Pasting → Plugin : Paste from Word |
---|
Formating is also lost in Firefox and Opera