W3C home > Mailing lists > Public > public-webapps@w3.org > July to September 2012

Re: [Clipboard API] Add a flag to indicate paste-as-text to beforepaste and paste events

From: Hallvord R. M. Steen <hallvord@opera.com>
Date: Fri, 24 Aug 2012 13:47:31 +0200
To: public-webapps <public-webapps@w3.org>, "Ryosuke Niwa" <rniwa@webkit.org>
Cc: "Aryeh Gregor" <ayg@aryeh.name>, "Daniel Cheng" <dcheng@chromium.org>
Message-ID: <op.wjjm1hera3v5gv@hr-desk>
Ryosuke Niwa <rniwa@webkit.org> skreiv Thu, 23 Aug 2012 20:40:49 +0200

> Hi all,
>
> We (Google) would like to propose to add a boolean flag indicating  
> whether
> the user intended to paste as plain text or rich text.

Perhaps we can add event.clipboardData.intendedType ? I.e.

if( event.clipboardData.intendedType=='text/plain' ){
  // user used "paste as text" command
}else{

}


-- 
Hallvord R. M. Steen
Core tester, Opera Software
Received on Friday, 24 August 2012 11:48:23 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:54 GMT