Opened 8 years ago

Closed 6 years ago

#5473 closed Bug (wontfix)

Dragging and dropping content from Word onto editor bypasses 'on paste' filters

Reported by: Daniel Rendall Owned by:
Priority: Normal Milestone:
Component: Core : Pasting Version: 3.0
Keywords: Cc: camden.michael@…

Description

In both IE and Firefox, if you drag content from a document open in Word into the editor (rather than using cut and paste), it doesn't trigger the pasteFromWord filter.

To reproduce:

1) Create a short Word document (I'm using Word 2007) - optionally enable the 'smart tags' feature and enter some content that will be marked up as a smart tag.

2) Open the demo editor http://ckeditor.com/demo in either IE or Firefox, delete all of the existing content.

3) Highlight the content in Word, click it and drag to the demo editor window then release.

4) Observe that the usual Word cleanup doesn't happen - if you view source you will see a lot of spurious XML markup in the various Office namespaces.

5) If you copy and paste the content instead, the cleanup will happen as expected.

Change History (5)

comment:1 Changed 7 years ago by Michael Camden

Cc: camden.michael@… added

comment:2 Changed 7 years ago by Michael Camden

Keywords: drag drop cleanWord added
Version: 3.23.5.3

Still present in latest version

comment:3 Changed 7 years ago by Wiktor Walc

Keywords: drag drop cleanWord removed
Status: newconfirmed
Version: 3.5.33.0

@mrfr0g please note that the version component describes the lowest version where the error occurs.

comment:4 Changed 6 years ago by Wiktor Walc

Same problem with config.forcePasteAsPlainText - this option is not honoured during drag&drop operation.

comment:5 Changed 6 years ago by Garry Yao

Resolution: wontfix
Status: confirmedclosed

We relied on "beforepaste" event for the clipboard filtering feature, while for drag&drop, there's unfortunately no equivalent event for us to hook-in, for this sake it becomes impossible to implement for us right now.

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