KO
|
EN
gitlite — search
Search
#php
#javascript
#css
#java
#c
#python
#hacktoberfest
#unmaintained
#dotfiles
#abandoned
#joomla
#joomla-framework
clipBoard.js
★ 30
Open GitHub ↗
with javascript operating clipboard
Download README (.md)
Explore Similar Repositories
spring-multi-datasource
:
This Is A Demo Use Spring AbstractRoutingDataSource And Aop Realize A Java Project Multi DataSource
IoT-Blink
:
Simple Blink Example using Raspberry Pi, LED Light and Ethereum for Meetup Class
meteor-mantra-react-redux-kickstarter
:
Basic structure for mantra architecture with flow router, react and redux
yamada
:
:feet: best image viewer while at work.
nativescript-azure-mobile-apps
:
:cloud: NativeScript plugin for working with Microsoft Azure Mobile Apps services
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
clipBoard.js
?
Download (.md)
# clipBoard.js with javascript operating clipboard, copy、cut and paste. # support | | copy | cut | paste | | :-----------: |:------:| :------:| :------: | | chrome | √ | √ | × | | Firefox | √ | √ | × | | IE7+ | √ | √ | √ | # methods ### copy ``` var copy = new clipBoard(document.getElementById('data'), { beforeCopy: function() { }, copy: function() { return document.getElementById('data').value; }, afterCopy: function() { } }); ``` copy will be called automatic, if you want call by yourself, you can do like this ``` var copy = new clipBoard(document.getElementById('data')); copy.copyd(); ``` > document.getElementById('data') is the value target, you can also use it with jquery $('#data') ### cut it same to copy ``` var cut = new clipBoard(document.getElementById('data'), { beforeCut: function() { }, cut: function() { return document.getElementById('data').value; }, afterCut: function() { } }); ``` or ``` var cut = new clipBoard(document.getElementById('data')); cut.cut(); ``` ### paste ``` var paste = new clipBoard(document.getElementById('data'), { beforePaste: function() { }, paste: function() { return document.getElementById('data').value; }, afterPaste: function() { } }); ``` or ``` var paste = new clipBoard(document.getElementById('data')); paste.paste(); ``` > document.getElementById('data') is the paste target, you can also use it with jquery $('#data') [NEW ISSUE](https://github.com/baixuexiyang/clipBoard.js/issues/new)