Giter VIP home page Giter VIP logo

clipboard's People

Contributors

garykac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

clipboard's Issues

Support multiple flavors

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

Paste with execCommand is not enabled in Chrome

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)

Are cut/copy/paste events considered to be user initiated in the new API?

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.
..."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.