flashbackzoo / copytoclipboard
There is no license information available for the latest version (v1.0.0) of this package.
Copy a SilverStripe field's value to the clipboard.
Package info
github.com/flashbackzoo/copytoclipboard
Language:JavaScript
Type:silverstripe-module
pkg:composer/flashbackzoo/copytoclipboard
v1.0.0
2015-05-05 04:24 UTC
Requires
- silverstripe/framework: >=3.1
This package is not auto-updated.
Last update: 2026-03-15 01:59:12 UTC
README
Copy a SilverStripe field's value to the clipboard using https://github.com/zeroclipboard/zeroclipboard
Install the module then add the copy-to-clipboard CSS class to your text field.
$fields->addFieldToTab("Root.Main", TextField::create('Text')->addExtraClass('copy-to-clipboard') );
This will add a copy button to your field. Clicking the button with copy the field's value to the clipboard.