Opened 20 months ago

Closed 6 months ago

#14293 closed Bug (invalid)

[pastetext] Paste As Plain Text does not remove bold and italic text from MS Word to Google Chrome

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

Description

Steps to reproduce

  1. Open the attached MS Word document and CTRL+C copy the text block
  2. Paste (CTRL+V) the text into a CKEditor that is configured with the Paste as Plain Text plugin (pastetext) and setting config.forcePasteAsPlainText = true. Additionally, the pastetext plugin is loaded as an externalPlugin via CKEditor.plugins.addExternal().

Expected result

All formatting will be removed.

Actual result

Bold and Italic formatting are preserved. Highlight, text color, and underline are removed.

Other details (browser, OS, CKEditor version, installed plugins)

Windows 7 MS Word 2013 Google Chrome Version 47.0.2526.106 m CKEditor 4.5.1 PasteText 4.5.6

This works as expected when pasting from the document into FireFox, and IE 11. This works as expected when the document is opened into Open Office Writer and pasted into Google Chrome.

Attachments (1)

Testing.docx (11.4 KB) - added by Seth Feldkamp 20 months ago.
Test Text to Paste

Download all attachments as: .zip

Change History (2)

Changed 20 months ago by Seth Feldkamp

Attachment: Testing.docx added

Test Text to Paste

comment:1 Changed 6 months ago by Jakub Ś

Resolution: invalid
Status: newclosed
Version: 4.5.1

According to documentation Paste from Word is not affected by forcePasteAsPlainText setting/ Please see: http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-forcePasteAsPlainText

If you use Ctrl+V or Paste from Word dialog - you will get styled content (Word content is also detected on Ctrl+V). If however you use paste as plain text or paste dialogs, only text will be pasted - tested with CKEditor 4.6.2

Note: See TracTickets for help on using tickets.
© 2003 – 2017 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy