Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Copy Text to Clipboard

No security coverage Under active development 107 sites

This module adds a "copy to clipboard" button to any text. Simply add the class "cp-to-clip" to the HTML element containing the text you want to make copyable.

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.

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

Ask your assistant about Copy Text to Clipboard

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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.

Activity

Tracked releases
3
Tracked since
Mar 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
1.0.1-rc2 Pre-release 10–11 Aug 12, 2024
1.0.x-dev Dev 10–11 Aug 11, 2024
1.0.1-rc1 Pre-release 10 Mar 13, 2024