Clipboard.js A modern approach to copy text to clipboard with clipboard.js plugin. No Flash. No frameworks. Just 3kb gzipped
Clipboard JS
To initialize ClipboardJS, first add the wrapper class .mt-clipboard-container
to your wrapper element and then add the class .mt-clipboard
to any element needed to be copied. The Copy
button will need a target reference data-clipboard-target
to identify which element it will be copying.
For more info please check out
the official documentation.
Lorem ipsum dolor sit amet, consectetur adipiscing elit. In convallis luctus elit, in auctor libero suscipit id. Nulla efficitur purus ac rutrum efficitur. Donec hendrerit, ipsum sit amet maximus dignissim, erat est porttitor leo, ac porttitor sem ex sit amet odio. Suspendisse bibendum rhoncus tortor, luctus placerat nibh convallis in.
Copy ParagraphLorem ipsum dolor sit amet, consectetur adipiscing elit. In convallis luctus elit, in auctor libero suscipit id. Nulla efficitur purus ac rutrum efficitur. Donec hendrerit, ipsum sit amet maximus dignissim, erat est porttitor leo, ac porttitor sem ex sit amet odio. Suspendisse bibendum rhoncus tortor, luctus placerat nibh convallis in.
Copy Highlighted Text Copy Hidden Text