Code

Copy to Clipboard

Why choose Jake? It's very simple. We have a better offer.

About

A very easy to use script tag that allows copy functionality. Additional options include custom copy text and custom cursors.

Embed

Usage

1. Activate Functionality
jl-copy-to-clipboard="true"
Set the jl-copy-to-clipboard to true to enable functionality. You can set multiple attributes on the same page.

2. Copy Custom Text (optional)
jl-copy-to-clipboard-text="{{your text here}}"
If you wish to set custom text to copy, you can use the jl-copy-to-clipboard-text attribute. Otherwise, the text of the element content will be copied.

3. Set Custom Cursor (optional)
jl-copy-to-clipboard-cursor="true"
If you want to show a icon when the user hovers over the element, add the jl-copy-to-clipboard-cursor attribute and set it to true.

Example

Code