mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-16 06:44:50 +00:00
070327cb57
This avoids breaking existing code that expects to be able to import the core macros with just $:/tags/Macro @pmario - I suggest that future updates use the same approach Thanks to @ericshulman for reporting the problem
27 lines
735 B
Plaintext
27 lines
735 B
Plaintext
title: $:/core/macros/copy-to-clipboard
|
|
tags: $:/tags/Macro $:/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
|