A very easy to use script tag that allows copy functionality. Additional options include custom copy text and custom cursors.
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
.