W3C home > Mailing lists > Public > public-webapps@w3.org > April to June 2012

Re: Clipboard API spec should specify beforecopy, beforecut, and beforepaste events

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 01 May 2012 19:40:35 -0400
Message-ID: <4FA07473.5090605@mit.edu>
To: Scott González <scott.gonzalez@gmail.com>
CC: public-webapps@w3.org
On 5/1/12 6:07 PM, Scott González wrote:
> I recall moving focus for paste events in order to figure out what is
> being pasted. I believe this is common in WYSIWYG editors; a new element
> is created and focus is moved to that element, then the paste occurs,
> then the element is inspected for the content and the editor does
> whatever it needs to (like cleaning up junk from pasted Word documents).
> Obviously if there was a cleaner way to get the contents, like Microsoft
> APIs for accessing the clipboard, then this wouldn't be needed.

Yeah, that seems like an abuse of onbeforepaste.  Especially since, 
again, onbeforepaste doesn't actually fire for all paste methods!

Received on Tuesday, 1 May 2012 23:41:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 13:55:50 UTC