From a620a6cc00b6341eee6b5db2dfb1e7acb2156373 Mon Sep 17 00:00:00 2001 From: Mohammad Rahmani <830394+kookma@users.noreply.github.com> Date: Sat, 27 Jul 2024 16:28:19 +0330 Subject: [PATCH] Add Copy to Clipboard Button to Code Template (#8430) --- core/ui/ViewTemplate/body/code.tid | 1 + 1 file changed, 1 insertion(+) diff --git a/core/ui/ViewTemplate/body/code.tid b/core/ui/ViewTemplate/body/code.tid index 8c0494b19..9d2250395 100644 --- a/core/ui/ViewTemplate/body/code.tid +++ b/core/ui/ViewTemplate/body/code.tid @@ -1,3 +1,4 @@ title: $:/core/ui/ViewTemplate/body/code +<$transclude $variable="copy-to-clipboard-above-right" src={{{ [get[text]] }}} /> <$codeblock code={{{ [get[text]] }}} language={{{ [get[type]else[text/vnd.tiddlywiki]] }}}/>