Re: [Clipboard] checking if implementation allows reading/writing a given type to the OS clipboard

Le 18 févr. 2012 à 16:25, Hallvord R. M. Steen a écrit :

>> Does this include an ability for a page to say that a media-type is supported?
>> (does it not appear natural?)
> 
> Hm.. you mean a page should be able to say "Hello web browser, I just luuuuve processing application/pdf data from the clipboard" ? I don't see the use case for that. If I'm misunderstanding you please clarify :-)

It means that if pdf is in the clipboard the paste command can stop being greyed out!
Otherwise the user is left to try and be told by the web-page: please please do it!

Similarly, shouldn't something such as
> if(event.clipboardData.isTypeSupported('foo/bar')) ...

be callable before the event is triggered?
This way the page can display the necessary invites to the user to make it clear that something can be copied?

paul

Received on Saturday, 18 February 2012 22:03:33 UTC