[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-10819":3},{"id":4,"name":5,"fullName":6,"owner":5,"repo":5,"description":7,"homepage":8,"htmlUrl":9,"language":10,"languages":9,"totalLinesOfCode":9,"stars":11,"forks":12,"watchers":13,"openIssues":14,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":15,"stars30d":16,"stars90d":15,"forks30d":15,"starsTrendScore":15,"compositeScore":17,"rankGlobal":9,"rankLanguage":9,"license":18,"archived":19,"fork":20,"defaultBranch":21,"hasWiki":19,"hasPages":20,"topics":22,"createdAt":9,"pushedAt":9,"updatedAt":32,"readmeContent":33,"aiSummary":34,"trendingCount":15,"starSnapshotCount":15,"syncStatus":13,"lastSyncTime":35,"discoverSource":36},10819,"zeroclipboard","zeroclipboard\u002Fzeroclipboard","The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.","http:\u002F\u002Fzeroclipboard.github.io\u002F",null,"JavaScript",6590,1019,2,82,0,1,65.13,"MIT License",true,false,"master",[23,24,25,26,27,28,29,30,31,5],"adobe-flash","adobe-flex","apache-flex","clipboard","dom","flash","frontend","javascript","web","2026-06-12 04:00:52","### :warning: WARNING!\nThis library is no longer maintained as it is no longer necessary for modern web development. If you want your frontend JavaScript to manipulate the clipboard, please look into the new HTML Clipboard API (various docs available on MDN) or a small convenience wrapper around it like [clipboard.js](https:\u002F\u002Fgithub.com\u002Fzenorocha\u002Fclipboard.js). Thanks for all your support, this project was a labor of love for many years. :heart:\n\n---\n\n#### Note:\n**This `master` branch contains the `v2.x` codebase for ZeroClipboard! For the `v1.x` codebase, see the [`1.x-master`](https:\u002F\u002Fgithub.com\u002Fzeroclipboard\u002Fzeroclipboard\u002Ftree\u002F1.x-master) branch instead.**\n\n\n# ZeroClipboard\n[![GitHub Latest Release](https:\u002F\u002Fbadge.fury.io\u002Fgh\u002Fzeroclipboard%2Fzeroclipboard.svg)](https:\u002F\u002Fgithub.com\u002Fzeroclipboard\u002Fzeroclipboard) [![Build Status](https:\u002F\u002Fsecure.travis-ci.org\u002Fzeroclipboard\u002Fzeroclipboard.svg?branch=master)](https:\u002F\u002Ftravis-ci.org\u002Fzeroclipboard\u002Fzeroclipboard) ![GZip Size](https:\u002F\u002Fbadge-size.herokuapp.com\u002Fzeroclipboard\u002Fzeroclipboard\u002Fmaster\u002Fdist\u002FZeroClipboard.min.js?compression=gzip) [![Coverage Status](https:\u002F\u002Fcoveralls.io\u002Frepos\u002Fzeroclipboard\u002Fzeroclipboard\u002Fbadge.svg?branch=master)](https:\u002F\u002Fcoveralls.io\u002Fr\u002Fzeroclipboard\u002Fzeroclipboard?branch=master) [![Dependency Status](https:\u002F\u002Fdavid-dm.org\u002Fzeroclipboard\u002Fzeroclipboard.svg?theme=shields.io)](https:\u002F\u002Fdavid-dm.org\u002Fzeroclipboard\u002Fzeroclipboard) [![Dev Dependency Status](https:\u002F\u002Fdavid-dm.org\u002Fzeroclipboard\u002Fzeroclipboard\u002Fdev-status.svg?theme=shields.io)](https:\u002F\u002Fdavid-dm.org\u002Fzeroclipboard\u002Fzeroclipboard#info=devDependencies)\n\nThe ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible [Adobe Flash](http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FAdobe_Flash) movie and a [JavaScript](http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FJavaScript) interface. The \"Zero\" signifies that the library is invisible and the user interface is left entirely up to you.\n\nThis is achieved by automatically floating the invisible movie on top of a [DOM](http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FDocument_Object_Model) element of your choice. Standard mouse events are even propagated out to your DOM element, so you can still have rollover and mousedown effects.\n\nSuggestions welcome read over the [contributing](\u002FCONTRIBUTING.md) guidelines.\n\n## Setup\n\nTo setup the project for local development start with these commands in your terminal.\n\n```sh\n$ git clone https:\u002F\u002Fgithub.com\u002Fzeroclipboard\u002Fzeroclipboard.git\n$ cd zeroclipboard\u002F\n$ npm install -g grunt-cli\n$ npm install\n$ grunt\n```\n\n## Development\n\nBefore submitting a pull request you'll need to validate, build, and test your code. Run the default grunt task in your terminal.\n\n```sh\n$ grunt\n```\n\n## Testing\n\nIf you just want to run the tests, run grunt test.\n\n```sh\n$ grunt test\n```\n\n## Limitations\n\n### User Interaction Required\n\nDue to browser and Flash security restrictions, this clipboard injection can _**ONLY**_ occur when\nthe user clicks on the invisible Flash movie. A simulated `click` event from JavaScript will not\nsuffice as this would enable [clipboard poisoning](http:\u002F\u002Fwww.computerworld.com\u002Fs\u002Farticle\u002F9117268\u002FAdobe_patches_Flash_clickjacking_and_clipboard_poisoning_bugs).\n\n### Other Limitations\n\nFor a complete list of limitations, see [docs\u002Finstructions.md#limitations](docs\u002Finstructions.md#limitations).\n\nOn that page, you will also find an [explanation of why ZeroClipboard will _NOT_ work by default on code playground sites](docs\u002Finstructions.md#starter-snippets-for-playground-sites) like JSFiddle, JSBin, and CodePen, as well as the appropriate \"View\" URLs to use on those sites in order to allow ZeroClipboard to work.\n\n\n## Simple Example\n\n```html\n\u003Chtml>\n  \u003Cbody>\n    \u003Cbutton id=\"copy-button\" data-clipboard-text=\"Copy Me!\" title=\"Click to copy me.\">Copy to Clipboard\u003C\u002Fbutton>\n    \u003Cscript src=\"ZeroClipboard.js\">\u003C\u002Fscript>\n    \u003Cscript src=\"main.js\">\u003C\u002Fscript>\n  \u003C\u002Fbody>\n\u003C\u002Fhtml>\n```\n\n```js\n\u002F\u002F main.js\nvar client = new ZeroClipboard( document.getElementById(\"copy-button\") );\n\nclient.on( \"ready\", function( readyEvent ) {\n  \u002F\u002F alert( \"ZeroClipboard SWF is ready!\" );\n\n  client.on( \"aftercopy\", function( event ) {\n    \u002F\u002F `this` === `client`\n    \u002F\u002F `event.target` === the element that was clicked\n    event.target.style.display = \"none\";\n    alert(\"Copied text to clipboard: \" + event.data[\"text\u002Fplain\"] );\n  } );\n} );\n```\n\nSee [docs\u002Finstructions.md](docs\u002Finstructions.md) for more advanced options in using the library on your site.\nSee [docs\u002Fapi\u002FZeroClipboard.md](docs\u002Fapi\u002FZeroClipboard.md) for the complete API documentation.\n\nHere is a working [test page](http:\u002F\u002Fzeroclipboard.github.io\u002F#demo) where you can try out ZeroClipboard in your browser.\n\n\n## Testing ZeroClipboard Locally\n\nTo test the page [demo page](http:\u002F\u002Fzeroclipboard.github.io\u002F#demo) locally, clone the [website repo](https:\u002F\u002Fgithub.com\u002Fzeroclipboard\u002Fzeroclipboard.github.io).\n\n## Support\n\nThis library is fully compatible with Flash Player 11.0.0 and above, which requires\nthat the clipboard copy operation be initiated by a user click event inside the\nFlash movie. This is achieved by automatically floating the invisible movie on top\nof a [DOM](http:\u002F\u002Fen.wikipedia.org\u002Fwiki\u002FDocument_Object_Model) element of your\nchoice. Standard mouse events are even propagated out to your DOM element, so you\ncan still have rollover and mousedown effects with just a _little_ extra effort.\n\nZeroClipboard `v2.x` is expected to work in IE9+ and all of the evergreen browsers.\nAlthough support for IE7 & IE8 was officially dropped in `v2.0.0`, it was actually\nstill _technically_ supported through `v2.0.2`.\n\n## Releases\n\nStarting with version [1.1.7](https:\u002F\u002Fgithub.com\u002Fzeroclipboard\u002Fzeroclipboard\u002Freleases\u002Ftag\u002Fv1.1.7), ZeroClipboard uses [semantic versioning](http:\u002F\u002Fsemver.org\u002F).\n\nsee [releases](https:\u002F\u002Fgithub.com\u002Fzeroclipboard\u002Fzeroclipboard\u002Freleases)\n\n## Related\n\n* [jquery.zeroclipboard](https:\u002F\u002Fgithub.com\u002Fzeroclipboard\u002Fjquery.zeroclipboard)\n* [zeroclipboard-rails](https:\u002F\u002Fgithub.com\u002Fzeroclipboard\u002Fzeroclipboard-rails)\n\n## License\n\nMIT &copy; [James M. Greene](http:\u002F\u002Fgreene.io\u002F) [Jon Rohan](http:\u002F\u002Fjonrohan.codes)\n","ZeroClipboard 是一个用于将文本复制到剪贴板的库，它通过使用不可见的 Adobe Flash 电影和 JavaScript 接口来实现这一功能。其核心在于利用 Flash 技术绕过浏览器的安全限制，允许前端 JavaScript 代码直接与用户的剪贴板交互，同时保持用户界面元素的可定制性。该库特别适合需要跨浏览器支持且要求简单易用的复制粘贴功能场景，如网页表单、在线编辑器等。然而，请注意此项目已不再维护，对于现代Web开发来说，推荐探索HTML Clipboard API或类似clipboard.js这样的替代方案。","2026-06-11 03:30:21","top_topic"]