garykac / clipboard Goto Github PK
View Code? Open in Web Editor NEWAsync Clipboard API Proposal
Home Page: https://github.com/garykac/clipboard/blob/master/clipboard.md
Async Clipboard API Proposal
Home Page: https://github.com/garykac/clipboard/blob/master/clipboard.md
There is no way to specify that an item has multiple flavors/representations on the clipboard. mozGetDataAt and mozSetDataAt got this correct with an index that was in common across the flavors of a given item. This is also reflective of the native clipboard API. Adding a series of flavors to the clipboard as individual items of a DataTransfer object doesn't help the receiver determine if they're a flavor or unique item.
items: foo.png foo.jpg <- single item, two flavors
items: foo.png bar.jpg <- multiple items, two unique items
items: foo.png foo.jpg, bar.png bar.jpg <- multiple items, two flavors of the each item
In the DataTransfer item list, the index needs to be specified since the item increments
item[0] item[1]
index: 0 index: 0
name: foo.png name: foo.jpg
blob/file blob/file
FYI this doc says paste is enabled in Chrome 43 using execCommand. Only copy and cut were since we wanted to add a new permission for paste (to prevent sites surprisingly reading from users clipboards)
I have a question about the text below. Does this mean that we can no longer consider cut/copy/paste events as user initiated events then?
"Make it easier to support alternate permission models.
For example, to enable web apps to copy to the clipboard without requiring a user gesture.
..."
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.