mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-04 18:00:44 +00:00
20 lines
625 B
Plaintext
20 lines
625 B
Plaintext
|
caption: colour
|
||
|
created: 20171216104754967
|
||
|
modified: 20171216104941967
|
||
|
tags: Macros [[Core Macros]]
|
||
|
title: copy-to-clipboard Macro
|
||
|
type: text/vnd.tiddlywiki
|
||
|
|
||
|
The <<.def copy-to-clipboard>> [[macro|Macros]] displays a button that copies specified text to the clipboard. A notification is displayed if the operation is successful; some browsers do not permit the operation.
|
||
|
|
||
|
!! Parameters
|
||
|
|
||
|
;src
|
||
|
: The text to be copied to the clipboard
|
||
|
;class
|
||
|
: Optional CSS classes to be assigned to the button (defaults to `tc-btn-invisible`)
|
||
|
;style
|
||
|
: Optional CSS styles to be assigned to the button
|
||
|
|
||
|
<<.macro-examples "copy-to-clipboard">>
|