Opened 10 years ago

Closed 10 years ago

#13097 closed Bug (invalid)

formatting lost copying text from MS Word 2010

Reported by: Tomasz Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

when I copy text from attached MS Word doc text is losing formatting. Arial 12 in MS Word is more like Arial 10 in CKEditor and spaces between lines are much bigger then in MS word.

Attachments (1)

Spacing between lines.docx (23.1 KB) - added by Tomasz 10 years ago.

Download all attachments as: .zip

Change History (3)

Changed 10 years ago by Tomasz

Attachment: Spacing between lines.docx added

comment:1 Changed 10 years ago by Tomasz

CKEditor - this is a java version. HTML created:

<textarea name="editor_html" cols="60" rows="8" ></textarea>

<script type="text/javascript"><![CDATA[ window.CKEDITOR_BASEPATH='../../ckeditor/'; ]]></script> <script type="text/javascript" src="../../ckeditor/ckeditor.js?t=B37D54V"></script> <script type="text/javascript"><![CDATA[ CKEDITOR.replace('editor_html', {"entities":"false","filebrowserFlashBrowseUrl":"..\/..\/ckfinder\/ckfinder.html?type=Flash","entities_latin":"false","entities_turkish":"false","entities_processNumerical":"false","extraCss":"body{font-family:Arial, serif;font-size:17px}","language":"en","pasteFromWordRemoveFontStyles":"false","filebrowserImageUploadUrl":"\/pcsauth\/ckfinder\/core\/connector\/java\/connector.java?command=QuickUpload&type=Images","filebrowserUploadUrl":"\/pcsauth\/ckfinder\/core\/connector\/java\/connector.java?command=QuickUpload&type=Files","filebrowserFlashUploadUrl":"\/pcsauth\/ckfinder\/core\/connector\/java\/connector.java?command=QuickUpload&type=Flash","pasteFromWordRemoveStyles":"false","extraPlugins":"pastefromword,clipboard,dialog,dialogui","filebrowserImageBrowseUrl":"..\/..\/ckfinder\/ckfinder.html?type=Images","filebrowserBrowseUrl":"..\/..\/ckfinder\/ckfinder.html","toolbar":[['Source','Preview'],['Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo'],['Find','Replace','-','SelectAll','-','SpellChecker', 'Scayt'],['Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat'],[ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','CreateDiv','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','-','BidiLtr','BidiRtl' ],[ 'Link','Unlink','Anchor' ],['Image','Table','HorizontalRule','SpecialChar','PageBreak','Iframe'],['Styles','Format','Font','FontSize'],['TextColor','BGColor']],"skin":"kama"}); ]]></script>

comment:2 Changed 10 years ago by Jakub Ś

Keywords: copy paste MS Word removed
Resolution: invalid
Status: newclosed
Version: 4.4.7

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.

You are pasting from desktop application into browser based one. If you want your result look as much as the original you would need to adjust css for that e.g. these big lines are paragraph which get default margins from browser. You can style your paragraphs in contants.css file.
As for font-size; Browser sees font-size:12.0pt;font-family: Arial,sans-serif and since such font is available in editor it's used.

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