1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-02 22:39:56 +00:00
TiddlyWiki5/core/ui/EditTemplate.tid

32 lines
1.4 KiB
Plaintext
Raw Normal View History

title: $:/core/ui/EditTemplate
modifier: JeremyRuston
\define frame-classes()
tw-tiddler-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$
\end
<div class=<<frame-classes>>><span class="tw-tiddler-controls title"> <$button message="tw-delete-tiddler" class="btn-invisible">{{$:/core/images/delete-button}}</$button> <$button message="tw-cancel-tiddler" class="btn-invisible">{{$:/core/images/cancel-button}}</$button> <$button message="tw-save-tiddler" class="btn-invisible">{{$:/core/images/done-button}}</$button> </span>
2013-03-20 17:20:46 +00:00
<$view field="title"/>
2013-01-17 11:30:35 +00:00
<$edit-text field="draft.title" class="title tw-edit-texteditor"/>
2013-01-17 11:30:35 +00:00
<$transclude tiddler="$:/core/ui/TagsEditor"/>
2013-01-17 11:30:35 +00:00
2013-05-29 21:43:09 +00:00
<$reveal state="$:/ShowEditPreview" type="match" text="yes">
<$transclude tiddler="$:/core/ui/EditorHint"/> <$button type="set" set="$:/ShowEditPreview" setTo="no">hide preview</$button>
2013-05-29 21:43:09 +00:00
<div class="tw-tiddler-preview">
<div class="tw-tiddler-preview-preview">
<$transclude />
2013-05-29 21:43:09 +00:00
</div>
<div class="tw-tiddler-preview-edit">
<$edit field="text" class="tw-edit-texteditor"/>
2013-05-29 21:43:09 +00:00
</div>
</div>
</$reveal>
<$reveal state="$:/ShowEditPreview" type="nomatch" text="yes">
<$transclude tiddler="$:/core/ui/EditorHint"/> <$button type="set" set="$:/ShowEditPreview" setTo="yes">show preview</$button>
<$edit field="text" class="tw-edit-texteditor"/>
2013-05-29 21:43:09 +00:00
</$reveal>
<$transclude tiddler="$:/core/ui/FieldEditor"/></div>