mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-12 12:59:57 +00:00
fixes #2311 demo: http://2311.tiddlyspot.com
This commit is contained in:
parent
c7b31b0242
commit
808587f1c1
@ -1,16 +1,26 @@
|
||||
title: $:/core/ui/EditTemplate
|
||||
|
||||
\define actions()
|
||||
<$action-sendmessage $message="tm-add-tag" $param={{$:/temp/NewTagName}}/>
|
||||
<$action-deletetiddler $tiddler="$:/temp/NewTagName"/>
|
||||
<$action-sendmessage $message="tm-add-field" $name={{$:/temp/newfieldname}} $value={{$:/temp/newfieldvalue}}/>
|
||||
<$action-deletetiddler $tiddler="$:/temp/newfieldname"/>
|
||||
<$action-deletetiddler $tiddler="$:/temp/newfieldvalue"/>
|
||||
<$action-sendmessage $message="tm-save-tiddler"/>
|
||||
\end
|
||||
\define frame-classes()
|
||||
tc-tiddler-frame tc-tiddler-edit-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$
|
||||
\end
|
||||
<div class=<<frame-classes>>>
|
||||
<$fieldmangler>
|
||||
<$set name="storyTiddler" value=<<currentTiddler>>>
|
||||
<$keyboard key="((cancel-edit-tiddler))" message="tm-cancel-tiddler">
|
||||
<$keyboard key="((save-tiddler))" message="tm-save-tiddler">
|
||||
<$keyboard key="((save-tiddler))" actions=<<actions>>>
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/EditTemplate]!has[draft.of]]" variable="listItem">
|
||||
<$transclude tiddler=<<listItem>>/>
|
||||
</$list>
|
||||
</$keyboard>
|
||||
</$keyboard>
|
||||
</$set>
|
||||
</$fieldmangler>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user