Skip to content

Commit

Permalink
0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
layerssss committed Feb 10, 2014
1 parent 64b0e04 commit 2ff2d71
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
paste.js
=====

paste.js is an interface to read from clipboard data in different browsers. Currenttly only tested under:

* IE 11 (Windows 7)
* Chrome 32 (Windows 7 / OSX)
* Firefox 26 (Windows 7 / OSX)
* Opera 12.15 (OSX) (text only)

usage
-----

```
// jQuery needed
paste = $.paste();
paste.on('pasteImage', function (ev, data){
console.log("dataURL: " + data.dataURL)
});
paste.on('pasteText', function (ev, data){
console.log("text: " + data.text)
});
paste.focus(); // it's actually a hidden div element
// ... when you don't need it anymore
paste.remove();
```

more
-----

see [this example](http://puffant.github.io/paste.js/)
7 changes: 5 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "paste.js",
"version": "0.0.0",
"version": "0.0.1",
"authors": [
"Michael Yin <[email protected]>"
],
Expand All @@ -10,7 +10,10 @@
"node_modules",
"bower_components",
"test",
"tests"
"tests",
"paste.coffee",
"Makefile",
"index.html"
],
"dependencies": {
"jquery": "~2.1.0"
Expand Down

0 comments on commit 2ff2d71

Please sign in to comment.