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
optimising-macrocalls
Simon Huber 2020-11-06 19:34:10 +01:00 zatwierdzone przez GitHub
rodzic d51975b183
commit b3d0303139
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -4,7 +4,7 @@ icon: $:/core/images/fixed-height
custom-icon: yes
caption: {{$:/language/Buttons/EditorHeight/Caption}}
description: {{$:/language/Buttons/EditorHeight/Hint}}
condition: [<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/]] +[first[]]
condition: [<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/]] [<targetTiddler>get[type]match[application/javascript]] [<targetTiddler>get[type]match[application/json]] [<targetTiddler>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">

Wyświetl plik

@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
icon: $:/core/images/stamp
caption: {{$:/language/Buttons/Stamp/Caption}}
description: {{$:/language/Buttons/Stamp/Hint}}
condition: [<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/]] +[first[]]
condition: [<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/]] [<targetTiddler>get[type]match[application/javascript]] [<targetTiddler>get[type]match[application/json]] [<targetTiddler>get[type]match[application/x-tiddler-dictionary]] +[first[]]
shortcuts: ((stamp))
dropdown: $:/core/ui/EditorToolbar/stamp-dropdown
text: