mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-30 05:19:57 +00:00
Show wikitext formatting buttons for compound tiddlers (#8449)
* allow wikitext formatting buttons for types [prefix[text/vnd.tiddlywiki]] which is very permissive * add 2 missing buttons
This commit is contained in:
parent
d2302df197
commit
27f3de2f88
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/bold
|
icon: $:/core/images/bold
|
||||||
caption: {{$:/language/Buttons/Bold/Caption}}
|
caption: {{$:/language/Buttons/Bold/Caption}}
|
||||||
description: {{$:/language/Buttons/Bold/Hint}}
|
description: {{$:/language/Buttons/Bold/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((bold))
|
shortcuts: ((bold))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/excise
|
icon: $:/core/images/excise
|
||||||
caption: {{$:/language/Buttons/Excise/Caption}}
|
caption: {{$:/language/Buttons/Excise/Caption}}
|
||||||
description: {{$:/language/Buttons/Excise/Hint}}
|
description: {{$:/language/Buttons/Excise/Hint}}
|
||||||
condition: [<targetTiddler>type[]] [<targetTiddler>type[text/vnd.tiddlywiki]] +[first[]]
|
condition: [<targetTiddler>type[]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]] +[first[]]
|
||||||
shortcuts: ((excise))
|
shortcuts: ((excise))
|
||||||
dropdown: $:/core/ui/EditorToolbar/excise-dropdown
|
dropdown: $:/core/ui/EditorToolbar/excise-dropdown
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/heading-1
|
icon: $:/core/images/heading-1
|
||||||
caption: {{$:/language/Buttons/Heading1/Caption}}
|
caption: {{$:/language/Buttons/Heading1/Caption}}
|
||||||
description: {{$:/language/Buttons/Heading1/Hint}}
|
description: {{$:/language/Buttons/Heading1/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
button-classes: tc-text-editor-toolbar-item-start-group
|
button-classes: tc-text-editor-toolbar-item-start-group
|
||||||
shortcuts: ((heading-1))
|
shortcuts: ((heading-1))
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/heading-2
|
icon: $:/core/images/heading-2
|
||||||
caption: {{$:/language/Buttons/Heading2/Caption}}
|
caption: {{$:/language/Buttons/Heading2/Caption}}
|
||||||
description: {{$:/language/Buttons/Heading2/Hint}}
|
description: {{$:/language/Buttons/Heading2/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((heading-2))
|
shortcuts: ((heading-2))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/heading-3
|
icon: $:/core/images/heading-3
|
||||||
caption: {{$:/language/Buttons/Heading3/Caption}}
|
caption: {{$:/language/Buttons/Heading3/Caption}}
|
||||||
description: {{$:/language/Buttons/Heading3/Hint}}
|
description: {{$:/language/Buttons/Heading3/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((heading-3))
|
shortcuts: ((heading-3))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/heading-4
|
icon: $:/core/images/heading-4
|
||||||
caption: {{$:/language/Buttons/Heading4/Caption}}
|
caption: {{$:/language/Buttons/Heading4/Caption}}
|
||||||
description: {{$:/language/Buttons/Heading4/Hint}}
|
description: {{$:/language/Buttons/Heading4/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((heading-4))
|
shortcuts: ((heading-4))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/heading-5
|
icon: $:/core/images/heading-5
|
||||||
caption: {{$:/language/Buttons/Heading5/Caption}}
|
caption: {{$:/language/Buttons/Heading5/Caption}}
|
||||||
description: {{$:/language/Buttons/Heading5/Hint}}
|
description: {{$:/language/Buttons/Heading5/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((heading-5))
|
shortcuts: ((heading-5))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/heading-6
|
icon: $:/core/images/heading-6
|
||||||
caption: {{$:/language/Buttons/Heading6/Caption}}
|
caption: {{$:/language/Buttons/Heading6/Caption}}
|
||||||
description: {{$:/language/Buttons/Heading6/Hint}}
|
description: {{$:/language/Buttons/Heading6/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((heading-6))
|
shortcuts: ((heading-6))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/italic
|
icon: $:/core/images/italic
|
||||||
caption: {{$:/language/Buttons/Italic/Caption}}
|
caption: {{$:/language/Buttons/Italic/Caption}}
|
||||||
description: {{$:/language/Buttons/Italic/Hint}}
|
description: {{$:/language/Buttons/Italic/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((italic))
|
shortcuts: ((italic))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/link
|
icon: $:/core/images/link
|
||||||
caption: {{$:/language/Buttons/Link/Caption}}
|
caption: {{$:/language/Buttons/Link/Caption}}
|
||||||
description: {{$:/language/Buttons/Link/Hint}}
|
description: {{$:/language/Buttons/Link/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
button-classes: tc-text-editor-toolbar-item-start-group
|
button-classes: tc-text-editor-toolbar-item-start-group
|
||||||
shortcuts: ((link))
|
shortcuts: ((link))
|
||||||
dropdown: $:/core/ui/EditorToolbar/link-dropdown
|
dropdown: $:/core/ui/EditorToolbar/link-dropdown
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
caption: {{$:/language/Buttons/Linkify/Caption}}
|
caption: {{$:/language/Buttons/Linkify/Caption}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
description: {{$:/language/Buttons/Linkify/Hint}}
|
description: {{$:/language/Buttons/Linkify/Hint}}
|
||||||
icon: $:/core/images/linkify
|
icon: $:/core/images/linkify
|
||||||
list-before: $:/core/ui/EditorToolbar/mono-block
|
list-before: $:/core/ui/EditorToolbar/mono-block
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/list-bullet
|
icon: $:/core/images/list-bullet
|
||||||
caption: {{$:/language/Buttons/ListBullet/Caption}}
|
caption: {{$:/language/Buttons/ListBullet/Caption}}
|
||||||
description: {{$:/language/Buttons/ListBullet/Hint}}
|
description: {{$:/language/Buttons/ListBullet/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((list-bullet))
|
shortcuts: ((list-bullet))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/list-number
|
icon: $:/core/images/list-number
|
||||||
caption: {{$:/language/Buttons/ListNumber/Caption}}
|
caption: {{$:/language/Buttons/ListNumber/Caption}}
|
||||||
description: {{$:/language/Buttons/ListNumber/Hint}}
|
description: {{$:/language/Buttons/ListNumber/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((list-number))
|
shortcuts: ((list-number))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/mono-block
|
icon: $:/core/images/mono-block
|
||||||
caption: {{$:/language/Buttons/MonoBlock/Caption}}
|
caption: {{$:/language/Buttons/MonoBlock/Caption}}
|
||||||
description: {{$:/language/Buttons/MonoBlock/Hint}}
|
description: {{$:/language/Buttons/MonoBlock/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
button-classes: tc-text-editor-toolbar-item-start-group
|
button-classes: tc-text-editor-toolbar-item-start-group
|
||||||
shortcuts: ((mono-block))
|
shortcuts: ((mono-block))
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/mono-line
|
icon: $:/core/images/mono-line
|
||||||
caption: {{$:/language/Buttons/MonoLine/Caption}}
|
caption: {{$:/language/Buttons/MonoLine/Caption}}
|
||||||
description: {{$:/language/Buttons/MonoLine/Hint}}
|
description: {{$:/language/Buttons/MonoLine/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((mono-line))
|
shortcuts: ((mono-line))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/picture
|
icon: $:/core/images/picture
|
||||||
caption: {{$:/language/Buttons/Picture/Caption}}
|
caption: {{$:/language/Buttons/Picture/Caption}}
|
||||||
description: {{$:/language/Buttons/Picture/Hint}}
|
description: {{$:/language/Buttons/Picture/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((picture))
|
shortcuts: ((picture))
|
||||||
dropdown: $:/core/ui/EditorToolbar/picture-dropdown
|
dropdown: $:/core/ui/EditorToolbar/picture-dropdown
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/quote
|
icon: $:/core/images/quote
|
||||||
caption: {{$:/language/Buttons/Quote/Caption}}
|
caption: {{$:/language/Buttons/Quote/Caption}}
|
||||||
description: {{$:/language/Buttons/Quote/Hint}}
|
description: {{$:/language/Buttons/Quote/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((quote))
|
shortcuts: ((quote))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/strikethrough
|
icon: $:/core/images/strikethrough
|
||||||
caption: {{$:/language/Buttons/Strikethrough/Caption}}
|
caption: {{$:/language/Buttons/Strikethrough/Caption}}
|
||||||
description: {{$:/language/Buttons/Strikethrough/Hint}}
|
description: {{$:/language/Buttons/Strikethrough/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((strikethrough))
|
shortcuts: ((strikethrough))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/subscript
|
icon: $:/core/images/subscript
|
||||||
caption: {{$:/language/Buttons/Subscript/Caption}}
|
caption: {{$:/language/Buttons/Subscript/Caption}}
|
||||||
description: {{$:/language/Buttons/Subscript/Hint}}
|
description: {{$:/language/Buttons/Subscript/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((subscript))
|
shortcuts: ((subscript))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/superscript
|
icon: $:/core/images/superscript
|
||||||
caption: {{$:/language/Buttons/Superscript/Caption}}
|
caption: {{$:/language/Buttons/Superscript/Caption}}
|
||||||
description: {{$:/language/Buttons/Superscript/Hint}}
|
description: {{$:/language/Buttons/Superscript/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((superscript))
|
shortcuts: ((superscript))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
caption: {{$:/language/Buttons/Transcludify/Caption}}
|
caption: {{$:/language/Buttons/Transcludify/Caption}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
description: {{$:/language/Buttons/Transcludify/Hint}}
|
description: {{$:/language/Buttons/Transcludify/Hint}}
|
||||||
icon: $:/core/images/transcludify
|
icon: $:/core/images/transcludify
|
||||||
list-before: $:/core/ui/EditorToolbar/mono-block
|
list-before: $:/core/ui/EditorToolbar/mono-block
|
||||||
|
@ -3,7 +3,7 @@ tags: $:/tags/EditorToolbar
|
|||||||
icon: $:/core/images/underline
|
icon: $:/core/images/underline
|
||||||
caption: {{$:/language/Buttons/Underline/Caption}}
|
caption: {{$:/language/Buttons/Underline/Caption}}
|
||||||
description: {{$:/language/Buttons/Underline/Hint}}
|
description: {{$:/language/Buttons/Underline/Hint}}
|
||||||
condition: [<targetTiddler>!has[type]] [<targetTiddler>type[text/vnd.tiddlywiki]]
|
condition: [<targetTiddler>!has[type]] [<targetTiddler>get[type]prefix[text/vnd.tiddlywiki]]
|
||||||
shortcuts: ((underline))
|
shortcuts: ((underline))
|
||||||
|
|
||||||
<$action-sendmessage
|
<$action-sendmessage
|
||||||
|
Loading…
Reference in New Issue
Block a user