jQuery plugin for add a reference to the source in buffer when copying.
A jQuery plugin to automatically append reference and copyright text to any content the user is copy & pasting away from your site.
Plugin is supported in Internet Explorer 7+, Firefox 3.5+, Opera 10.5+, Chrome 4.0+, and Safari 4.0+.
The Copyright plugin uses the jQuery JavaScript library (>=1.7), only. So, include just these two javascript files in your header.
<script src="js/jquery.js"></script> <script src="js/jquery.coopyright.js"></script>
Call the jQuery Copyright plugin. You can select a specific selector or the document.
$(document).copyright();
You can pass an options object in plugin init method.
$(document).copyright({ text: "<br>Reference: " + window.location.href, minlength: 100, processing: function(text) { return "Text \"" + text + "\" copied."; } });
You can call some methods. Just pass their name.
$(document).copyright('remove');
You can listen Copyright events.
Copy any text from this page and paste it into the textarea: