From b3d0303139cbf8a07b689cece3dd46307b8ff960 Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Fri, 6 Nov 2020 19:34:10 +0100 Subject: [PATCH] Add editor-height button and stamp-button to tiddler types that miss them (#4975) * Add editor-height button also to application/javascript ... ... application/json and application/x-tiddler-dictionary * Add stamp button also to application/javascript ... ... application/json and application/x-tiddler-dictionary --- core/ui/EditorToolbar/editor-height.tid | 2 +- core/ui/EditorToolbar/stamp.tid | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ui/EditorToolbar/editor-height.tid b/core/ui/EditorToolbar/editor-height.tid index a8bb2ca13..e81a8f418 100644 --- a/core/ui/EditorToolbar/editor-height.tid +++ b/core/ui/EditorToolbar/editor-height.tid @@ -4,7 +4,7 @@ icon: $:/core/images/fixed-height custom-icon: yes caption: {{$:/language/Buttons/EditorHeight/Caption}} description: {{$:/language/Buttons/EditorHeight/Hint}} -condition: [type[]] [get[type]prefix[text/]] +[first[]] +condition: [type[]] [get[type]prefix[text/]] [get[type]match[application/javascript]] [get[type]match[application/json]] [get[type]match[application/x-tiddler-dictionary]] +[first[]] dropdown: $:/core/ui/EditorToolbar/editor-height-dropdown <$reveal tag="span" state="$:/config/TextEditor/EditorHeight/Mode" type="match" text="fixed"> diff --git a/core/ui/EditorToolbar/stamp.tid b/core/ui/EditorToolbar/stamp.tid index af57feb4b..a69be3f18 100644 --- a/core/ui/EditorToolbar/stamp.tid +++ b/core/ui/EditorToolbar/stamp.tid @@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar icon: $:/core/images/stamp caption: {{$:/language/Buttons/Stamp/Caption}} description: {{$:/language/Buttons/Stamp/Hint}} -condition: [type[]] [get[type]prefix[text/]] +[first[]] +condition: [type[]] [get[type]prefix[text/]] [get[type]match[application/javascript]] [get[type]match[application/json]] [get[type]match[application/x-tiddler-dictionary]] +[first[]] shortcuts: ((stamp)) dropdown: $:/core/ui/EditorToolbar/stamp-dropdown text: