mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-12 11:10:27 +00:00
0a03ac8219
See #8683
27 lines
720 B
Plaintext
27 lines
720 B
Plaintext
title: $:/core/macros/copy-to-clipboard
|
|
tags: $:/tags/Macro
|
|
|
|
\whitespace trim
|
|
|
|
\procedure copy-to-clipboard(src,class:"tc-btn-invisible",style)
|
|
<$button message="tm-copy-to-clipboard"
|
|
param=<<src>>
|
|
class=<<class>>
|
|
style=<<style>>
|
|
tooltip={{$:/language/Buttons/CopyToClipboard/Hint}}
|
|
>
|
|
{{$:/core/images/copy-clipboard}}
|
|
<span class="tc-tiny-gap-left">
|
|
<$text text={{$:/language/Buttons/CopyToClipboard/Caption}}/>
|
|
</span>
|
|
</$button>
|
|
\end
|
|
|
|
\procedure 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
|