Opened 15 months ago

Closed 6 weeks 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: sfeldkamp 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 sfeldkamp 15 months ago.
Test Text to Paste

Download all attachments as: .zip

Change History (2)

Changed 15 months ago by sfeldkamp

Test Text to Paste

comment:1 Changed 6 weeks ago by j.swiderski

  • Resolution set to invalid
  • Status changed from new to closed
  • Version 4.5.1 deleted

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 – 2016 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy