[1.0.x] Copy Text to Clipboard

Created on 28 February 2024, 4 months ago
Updated 15 March 2024, 4 months ago

The Copy Text to Clipboard 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.
e.g. <div class="cp-to-clip"> Text .... </div>

The Clipboard.js module is a more advanced module which includes the copy to clipboard capabilities provided by the clipboard.js jQuery library.

This module includes a purely JavaScript function, independent of jQuery. The simplicity of this module lies in the fact that it has no dependencies other than drupal core, and no additional configuration. This makes it an easy to install and use out of the box.

Project link

https://www.drupal.org/project/cp2clip →

📌 Task
Status

Needs work

Component

module

Created by

🇺🇸United States puffoon

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024