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

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 UTC