mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-02 08:06:17 +00:00
53ccc29209
* copy-to-clipboard-macors -- new v5.3.x syntax * copy-to-clipboard - change tags to $:/tags/Global
27 lines
721 B
Plaintext
27 lines
721 B
Plaintext
title: $:/core/macros/copy-to-clipboard
|
|
tags: $:/tags/Global
|
|
|
|
\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
|