Copyright

jQuery plugin for add a reference to the source in buffer when copying.


About

A jQuery plugin to automatically append reference and copyright text to any content the user is copy & pasting away from your site.


Browser Support

Plugin is supported in Internet Explorer 7+, Firefox 3.5+, Opera 10.5+, Chrome 4.0+, and Safari 4.0+.


Usage

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();	
		

Options:

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.";
	}
});
		


Methods:

You can call some methods. Just pass their name.

$(document).copyright('remove');
		


Events:

You can listen Copyright events.



Example:

Copy any text from this page and paste it into the textarea: