W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2012

[whatwg] contentEditable and drag and drop cancel

From: Charles Pritchard <chuck@jumis.com>
Date: Wed, 18 Jan 2012 16:11:05 -0800
Message-ID: <4F175F99.4070209@jumis.com>
What was the verdict, or what is the current position on using drag and 
drop dataTransfer with contentEditable?

As I understand things:
One must run ondragover = function() { return false; } to capture a drag 
and drop data.
By returning false, the default behavior of a contentEditable box, which 
is to move the cursor, is canceled.

Because of this, one can not drag and drop a file into a particular 
place in a contentEditable box in one step.

One must first execute the data transfer, then drag and drop or click, 
in the contentEditable box, to place the content.

Received on Wednesday, 18 January 2012 16:11:05 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:09:10 UTC