2017-12-16 10:58:33 +00:00
|
|
|
title: $:/core/macros/copy-to-clipboard
|
2024-10-22 12:15:34 +00:00
|
|
|
tags: $:/tags/Macro
|
2017-12-16 10:58:33 +00:00
|
|
|
|
2022-04-16 16:19:05 +00:00
|
|
|
\whitespace trim
|
2024-02-14 18:36:32 +00:00
|
|
|
|
|
|
|
\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>
|
2017-12-16 10:58:33 +00:00
|
|
|
</$button>
|
|
|
|
\end
|
|
|
|
|
2024-02-14 18:36:32 +00:00
|
|
|
\procedure copy-to-clipboard-above-right(src,class:"tc-btn-invisible",style)
|
2017-12-16 10:58:33 +00:00
|
|
|
<div style="position: relative;">
|
2024-02-14 18:36:32 +00:00
|
|
|
<div style="position: absolute; bottom: 0; right: 0;">
|
|
|
|
<$macrocall $name="copy-to-clipboard" src=<<src>> class=<<class>> style=<<style>>/>
|
|
|
|
</div>
|
2017-12-16 10:58:33 +00:00
|
|
|
</div>
|
|
|
|
\end
|