This project is not covered by Drupal’s security advisory policy.
Features
The Copy to Clipboard module is a tiny module that allows a copy to clipboard
capability by simply adding a class "cp-to-clip" to any HTML tag that
encloses the text to be copied.
e.g. <div class="cp-to-clip"> Text ....</div>
This module provides a tiny JavaScript and CSS files that can add a "copy" button to the end of any text that can be copied to the clipboard when clicked. The module has no dependencies, no configuration; simply install and use. Add a class "cp-to-clip" to the HTML tag that encloses the text to be copied. The module does the rest.
Post-Installation
Additional Requirements
Recommended modules/libraries
The Clipboard.js module is a more advanced module which includes the copy to clipboard capabilities provided by the clipboard.js jQuery library.
Similar projects
This module includes a purely JavaScript function, independent of jQuery. The simplicity of this module with no dependencies other than drupal core, and no additional configuration makes it an easy to install and use out of the box.
Supporting this Module
Community Documentation
Project information
- Project categories: Content display
136 sites report using this module
- Created by puffoon on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.