2017 © Pedro Peláez
 

component zeroclipboard

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

image

huebs/zeroclipboard

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  • Saturday, December 6, 2014
  • by huebs
  • Repository
  • 1 Watchers
  • 0 Stars
  • 106 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1142 Forks
  • 0 Open issues
  • 31 Versions
  • 3 % Grown

The README.md

WARNING

This master branch contains the v2.x codebase for ZeroClipboard! For the v1.x codebase, see the 1.x-master branch instead., (*1)

ZeroClipboard

GitHub Latest Release Build Status Coverage Status Dependency Status Dev Dependency Status, (*2)

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface. The "Zero" signifies that the library is invisible and the user interface is left entirely up to you., (*3)

This is achieved by automatically floating the invisible movie on top of a DOM element of your choice. Standard mouse events are even propagated out to your DOM element, so you can still have rollover and mousedown effects., (*4)

Limitations

User Interaction Required

Due to browser and Flash security restrictions, this clipboard injection can ONLY occur when the user clicks on the invisible Flash movie. A simulated click event from JavaScript will not suffice as this would enable clipboard poisoning., (*5)

Other Limitations

For a complete list of limitations, see docs/instructions.md#limitations., (*6)

Simple Example

<html>
  <body>
    <button id="copy-button" data-clipboard-text="Copy Me!" title="Click to copy me.">Copy to Clipboard</button>
    <script src="ZeroClipboard.js"></script>
    <script src="main.js"></script>
  </body>
</html>
// main.js
var client = new ZeroClipboard( document.getElementById("copy-button") );

client.on( "ready", function( readyEvent ) {
  // alert( "ZeroClipboard SWF is ready!" );

  client.on( "aftercopy", function( event ) {
    // `this` === `client`
    // `event.target` === the element that was clicked
    event.target.style.display = "none";
    alert("Copied text to clipboard: " + event.data["text/plain"] );
  } );
} );

See docs/instructions.md for more advanced options in using the library on your site. See docs/api/ZeroClipboard.md for the complete API documentation., (*7)

Here is a working test page where you can try out ZeroClipboard in your browser., (*8)

Testing ZeroClipboard Locally

To test the page demo page locally, clone the website repo., (*9)

Support

This library is fully compatible with Flash Player 11.0.0 and above, which requires that the clipboard copy operation be initiated by a user click event inside the Flash movie. This is achieved by automatically floating the invisible movie on top of a DOM element of your choice. Standard mouse events are even propagated out to your DOM element, so you can still have rollover and mousedown effects with just a little extra effort., (*10)

ZeroClipboard v2.x is expected to work in IE9+ and all of the evergreen browsers. Although support for IE7 & IE8 was officially dropped in v2.0.0, it was actually still technically supported through v2.0.2., (*11)

Contributing

see CONTRIBUTING.md, (*12)

Releases

Starting with version 1.1.7, ZeroClipboard uses semantic versioning., (*13)

see releases, (*14)

Roadmap

see roadmap.md, (*15)

The Versions

06/12 2014

dev-master

9999999-dev http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

06/12 2014

dev-composer-component-support

dev-composer-component-support http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

27/07 2014

2.1.6

2.1.6.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

03/07 2014

2.1.5

2.1.5.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

03/07 2014

2.1.4

2.1.4.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

25/06 2014

2.1.3

2.1.3.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

17/06 2014

2.1.2

2.1.2.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

11/06 2014

2.1.1

2.1.1.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

11/06 2014

2.1.0

2.1.0.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

10/06 2014

2.0.3

2.0.3.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

09/06 2014

2.0.2

2.0.2.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

05/06 2014

2.0.1

2.0.1.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

03/06 2014

2.0.0

2.0.0.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

24/05 2014

2.0.0-beta.8

2.0.0.0-beta8 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

21/05 2014

2.0.0-beta.7

2.0.0.0-beta7 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

19/05 2014

2.0.0-beta.6

2.0.0.0-beta6 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

29/04 2014

2.0.0-beta.5

2.0.0.0-beta5 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

21/04 2014

2.0.0-beta.4

2.0.0.0-beta4 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

17/04 2014

2.0.0-beta.3

2.0.0.0-beta3 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

15/04 2014

2.0.0-beta.2

2.0.0.0-beta2 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

15/04 2014

2.0.0-beta.1

2.0.0.0-beta1 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

22/03 2014

dev-1.x-master

dev-1.x-master http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

22/03 2014

1.3.5

1.3.5.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

20/03 2014

1.3.4

1.3.4.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

15/03 2014

1.3.3

1.3.3.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

31/01 2014

1.3.2

1.3.2.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

23/01 2014

1.3.1

1.3.1.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

23/01 2014

1.3.0

1.3.0.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

09/01 2014

1.3.0-beta.1

1.3.0.0-beta1 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

14/11 2013

1.2.3

1.2.3.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy

30/10 2013

1.2.2

1.2.2.0 http://zeroclipboard.org/

The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.

  Sources   Download

MIT

copy flash cut clipboard paste zclip clip clippy