ivaynberg/select2 — pull request #365 by mrapczynski (2012-08-29 17:14:09+00:00)
Title: Added new clipboard style copy(…) and paste(…) functions

I am going to be implementing Select2 in a business web application wherein it will be instanced multiple times on a single page. Users will be selecting names of other persons for multiple line items in a leave request.

In a prototype created several months ago, I added a rudimentary copy/paste function using only jQuery and HTML select elements. It turned out to be extremely well received during project meetings. For the production version of my app, I am using Select2 to make the UX even nicer, and along the way it made the most sense to incorporate the copy/paste functionality directly into Select2 as a callable API.

Please consider this small addition for your next version of Select2. A demo page is packaged with the changes so you can quickly sample how it works.