Copy Text to Clipboard
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
There is no configuration needed.Additional Requirements
No additional modules, libraries or APIs are needed.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
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.