1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-14 05:44:50 +00:00

Add Copy to Clipboard Button to Code Template (#8430)

This commit is contained in:
Mohammad Rahmani 2024-07-27 16:28:19 +03:30 committed by GitHub
parent 43b937d350
commit a620a6cc00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,3 +1,4 @@
title: $:/core/ui/ViewTemplate/body/code title: $:/core/ui/ViewTemplate/body/code
<$transclude $variable="copy-to-clipboard-above-right" src={{{ [<currentTiddler>get[text]] }}} />
<$codeblock code={{{ [<currentTiddler>get[text]] }}} language={{{ [<currentTiddler>get[type]else[text/vnd.tiddlywiki]] }}}/> <$codeblock code={{{ [<currentTiddler>get[text]] }}} language={{{ [<currentTiddler>get[type]else[text/vnd.tiddlywiki]] }}}/>