#9426 closed Bug (invalid)
Paste from Word feature - issue
Reported by: | Ganesh | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | Plugin : Paste from Word | Version: | |
Keywords: | Cc: |
Description
CKEditor does not carry over the formatting from word document while copy and paste from word. especially if word document style contains span tags with "mso-bidi-font-size".
I am attaching a sample document that contains contains section headers, paagraph headers, ordered lists, unordered lists. The formatting does not get carried over to the editor. And also, the font formatting is not the same in both IE and Firefox.
Kindly help me resolve this issue.
Attachments (1)
Change History (4)
Changed 12 years ago by
Attachment: | CK_Sample word document.docx added |
---|
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
- Please understand that Word is completely different environment when comparing it to browser. Result will never be 1:1
- You have written that lists don't get copied. Please note that in your Word document many elements (E.g almost all '(i)' ) are not even seen as lists by word. If word doesn't see lists there neither will CKEditor. There is no information about the list whatsoever. In this particular case you should fix your document.
- You have written that mso-bidi-font-size are ignored. In all cases in your document there was font-size next to mso-bidi-font-size. Rule font-size is something that is used in a browser. In this case I believe that rule is not even taken into account. Filter does not check it as it has something that it recognizes.
Point two requires fixing the doc file.
In case of point 1 and 3 like I have stated before these are two different worlds and result will be 1:1 (There is no error here).
If don't like the way how word filter works you can modify it or replace it with your own. Source code for default filter is located under ckeditor\_source\plugins\pastefromword\filter\default.js
.
You can prepeare new file based on default filter, put it under ckeditor/plugins/pastefromword/filter/* (there is no /_source/ in path – this is release code) And specify name for this file using this option http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.pasteFromWordCleanupFile
comment:3 Changed 11 years ago by
Component: | Core : Pasting → Plugin : Paste from Word |
---|
Additional info: Mozilla receives data without font-size and IE8 receives font-size as 3 for some paragraphs.