diff --git a/.gitignore b/.gitignore index 7bf6eb1..3c3629e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -bower_components node_modules diff --git a/README.md b/README.md deleted file mode 100644 index 0316584..0000000 --- a/README.md +++ /dev/null @@ -1,55 +0,0 @@ -# clipboard.js - -> A modern approach to copy & cut to the clipboard. No Flash. No dependencies. Just 1kb. - -## Install - -You can get it using bower: - -``` -bower install clipboard --save -``` - -Or [download as ZIP](https://github.com/zenorocha/clipboard.js/archive/master.zip). - -## Usage - -First, you need to instantiate it using a selector. This selector corresponds to the trigger element, usually a ` -``` - -Another way of doing it, is to copy the content from an another element. You can do that by adding a `data-target` attribute in your trigger element. The value you include on this attribute needs to match another's element `id` attribute. - -```html -

Lorem ipsum

- -``` - -Additionally, you can define a `data-action` attribute to specify if you want to either `copy` or `cut` content. If you omit this attribute, `copy` will be used. - -```html - - -``` - -As you may expect, the `cut` action only works on `` or `