Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#11005 closed Bug (invalid)

Asp.Net CKEditor "Past From Word" not maintining original format

Reported by: rama Owned by:
Priority: Normal Milestone:
Component: Plugin : Paste from Word Version: 3.6.4
Keywords: Cc:

Description

Hi Team,

I am trying to copy some data from MS-Word to CKEditor but it's not giving original MS-Word format. CKEditor removing some tags like MSONormal.Because of this format is disturbing. I want same as it as what is there in MS-Word.

I already configured below tags but still it's not giving proper format config.pasteFromWordRemoveFontStyles = false; config.pasteFromWordRemoveStyles = false;

I attached sample MS-Word Document for reference.

My DLL details as below File Name : CKEditor for ASP.NET Version : 3.6.4.0

Please suggest me what to do.

Regards, Rama

Attachments (1)

Test_WordDoc.docx (11.7 KB) - added by rama 6 years ago.

Download all attachments as: .zip

Change History (4)

Changed 6 years ago by rama

Attachment: Test_WordDoc.docx added

comment:1 Changed 6 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

This isn't support site but place for reporting bugs in editor. Please use forum fot that.


You could try using http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-pasteFromWordCleanupFile and http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent set to true. That way you have the choice whether to paste word code or cleaned HTML.

We don't provide out of the box option to paste Word code. You have to understand that CKEditor is HTML editor and not any code editor. So even if no filtering is done then still some WORD code might get removed.

comment:2 Changed 6 years ago by Jakub Ś

You may use CKE 4.2.2 client-side with CKE ASP.NET 3.6.4 server side.

  1. Go to CKEditor site and download CKEditor 4.2.1 FULL Package
  2. Extract it into ckeditor folder
  3. Go to your_ckeditor_aspnet/_Samples/ and replace existing ckeditor folder with the one you have downloaded.

The only thing you won't be able to set from ASP.NET Control is ACF:
http://ckeditor.com/blog/Upgrading-to-CKEditor-4.1
http://ckeditor.com/blog/CKEditor-4.1-RC-Released
http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter
http://docs.ckeditor.com/#!/api/CKEDITOR.filter-method-addTransformations
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-allowedContent
http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-extraAllowedContent
which you would have to configure or disable in ckeditor/config.js file.

comment:3 Changed 6 years ago by Frederico Caldeira Knabben

Component: Core : PastingPlugin : Paste from Word
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy