mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 17:40:29 +00:00
3c365a2567
#4093 and #4100 are bundled in this PR * qualified state-tiddlers for the tags input and fieldname + fieldvalue inputs * newTagName, newFieldNameTiddler and newFieldValueTiddler variables defined in EditTemplate (all qualified through `qualify` macro) * save-tiddler-actions macro in the EditTemplate (reused by the save-tiddler button) * enter (configurable) in the fieldvalue field adds the field and sets focus to the next fieldname input Edit: * storyview="pop" for fields list
18 lines
684 B
Plaintext
18 lines
684 B
Plaintext
title: $:/core/ui/Buttons/save
|
|
tags: $:/tags/EditToolbar
|
|
caption: {{$:/core/images/done-button}} {{$:/language/Buttons/Save/Caption}}
|
|
description: {{$:/language/Buttons/Save/Hint}}
|
|
|
|
\define save-tiddler-button()
|
|
<$fieldmangler><$button tooltip={{$:/language/Buttons/Save/Hint}} aria-label={{$:/language/Buttons/Save/Caption}} class=<<tv-config-toolbar-class>>>
|
|
<<save-tiddler-actions>>
|
|
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
|
|
{{$:/core/images/done-button}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>match[yes]]">
|
|
<span class="tc-btn-text"><$text text={{$:/language/Buttons/Save/Caption}}/></span>
|
|
</$list>
|
|
</$button></$fieldmangler>
|
|
\end
|
|
<<save-tiddler-button>>
|