mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 13:29:56 +00:00
1b6a06a4d7
And use it in the tw5.com example documentation
18 lines
667 B
Plaintext
18 lines
667 B
Plaintext
title: $:/core/macros/copy-to-clipboard
|
|
tags: $:/tags/Macro
|
|
|
|
\define copy-to-clipboard(src,class:"tc-btn-invisible",style)
|
|
<$button class=<<__class__>> style=<<__style__>> message="tm-copy-to-clipboard" param=<<__src__>> tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}>
|
|
{{$:/core/images/copy-clipboard}} <$text text={{$:/language/Buttons/CopyToClipboard/Caption}}/>
|
|
</$button>
|
|
\end
|
|
|
|
\define copy-to-clipboard-above-right(src,class:"tc-btn-invisible",style)
|
|
<div style="position: relative;">
|
|
<div style="position: absolute; bottom: 0; right: 0;">
|
|
<$macrocall $name="copy-to-clipboard" src=<<__src__>> class=<<__class__>> style=<<__style__>>/>
|
|
</div>
|
|
</div>
|
|
\end
|
|
|