Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#9169 closed Bug (invalid)

Microsoft word to CK Editoer pasting not working in IE 8

Reported by: sandip patel Owned by:
Priority: Normal Milestone:
Component: Plugin : Paste from Word Version:
Keywords: Cc:

Description

Hi All,

In our project We want to convert content of Microsoft Word document to ck editor for Wiki Page, but in IE 8 it cannot parse correctly and display some <!--[if !supportLists]-->… <!--[if !supportLists]--> in the content and not maintain format as well.

It cannot copy the styling and color of content for Microsoft Word document to ckeditror.

Problem is also exist for images as well, if someone copy the image content from Microsoft Word to ck editor then in ckeditor image path is set as from local machine for Ex. " <img src="file:///C:\DOCUME~1\MAHIPA~1.RAN\LOCALS~1\Temp\msohtmlclip1\01\clip_image001.jpg" />" which is incorrect.

Has anyone give direction on above problems? Your solutions must be appreciated.

Change History (5)

comment:1 Changed 12 years ago by Jakub Ś

Resolution: invalid
Status: newclosed
  1. 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.
  1. It cannot copy the styling and colour of content

Please use the api for that.
http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.pasteFromWordRemoveStyles
http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.pasteFromWordRemoveFontStyles

  1. >>Problem is also exist for images as well, if someone copy the image content from Microsoft Word

MS Word works in desktop while CKEditor works in browsers and is almost always located on server. In short these are two different worlds. If you want to see images on server please upload them there first.
For the above you might want to create your custom filebrowser http://docs.cksource.com/CKEditor_3.x/Developers_Guide/File_Browser_%28Uploader%29 or use the existing offerd by CKSource - http://ckfinder.com/ (it isn't free).
Still even when using CKFinder, if you want to auto upload images from word to server when contents are pasted you will have to write your own plugin for that.

comment:2 Changed 12 years ago by sandip patel

In IE8 somrtimes it dispaly <!--[if !supportLists]-->… <!--[if !supportLists]--> tag, before the content and due to unparse it gives stackoverflow error in JAVA.

In Firefox is parse correctly while in IE 8 it cause problem!!! what is reason for this?

comment:3 Changed 12 years ago by Jakub Ś

  1. Any chance for providing document that is causing this error?
  1. Are you getting the same behaviour on demo page http://ckeditor.com/demo or only in your application

3.

due to unparse it gives stackoverflow error in JAVA

Where does it happen? In CKEditor for Java or in your JAVA webapp?

  1. I have seen couple of links on the internet about it but I think that word filter handles it:

http://kb.mozillazine.org/SupportEmptyParas_tags_in_HTML_messages
http://forums.mozillazine.org/viewtopic.php?f=39&t=400117&start=0

Please provide test doc so that we could see the problem on our own.

comment:4 Changed 11 years ago by Frederico Caldeira Knabben

Component: GeneralPlugin : Paste from Word

comment:5 Changed 10 years ago by Alfonso Martínez de Lizarrondo

To make it easy for the users to upload the images included in the Word document to the server, you can get the Images From Word plugin, that way a dialog will guide the user with a two clicks option to select and upload the included images.

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