Ticket #5473 (closed Bug: wontfix)

Opened 4 years ago

Last modified 3 years ago

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

Reported by: danielrendall 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

comment:1 Changed 3 years ago by mrfr0g

  • Cc camden.michael@… added

comment:2 Changed 3 years ago by mrfr0g

  • Keywords drag drop, cleanWord added
  • Version changed from 3.2 to 3.5.3

Still present in latest version

comment:3 Changed 3 years ago by wwalc

  • Keywords drag drop, cleanWord removed
  • Status changed from new to confirmed
  • Version changed from 3.5.3 to 3.0

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

comment:4 Changed 3 years ago by wwalc

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

comment:5 Changed 3 years ago by garry.yao

  • Status changed from confirmed to closed
  • Resolution set to wontfix

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