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

2012-08-24 Thread Sebastian Markbåge
>> 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 >

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

2012-08-24 Thread Hallvord R. M. Steen
Ryosuke Niwa 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=='

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

2012-08-23 Thread Bjoern Hoehrmann
* Ryosuke Niwa wrote: >*Proposal* >Add a boolean flag to beforepaste and paste events indicating whether the >user had intended to paste as text or rich text. (pasteAsText IDL >attribute?) There are many more "intents" here than "text" and "not text", like they may mean to paste vector paths to pr

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

2012-08-23 Thread Ryosuke Niwa
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. *Problem* Many modern Web browsers (including Chrome, Safari, Firefox, etc...) support regular paste and paste as text or paste matching the destination style.