mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-18 07:44:51 +00:00
be06257430
Belatedly realised that the design would be clearer without these two separate concepts being conflated into a single widget. As a result of this change, any other widget or template that generates transclude widgets has needed adjustment.
31 lines
1.2 KiB
Plaintext
31 lines
1.2 KiB
Plaintext
title: $:/core/ui/EditTemplate
|
|
modifier: JeremyRuston
|
|
|
|
<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>
|
|
|
|
<$view field="title"/>
|
|
|
|
@@.title
|
|
<$edit field="draft.title"/>
|
|
@@
|
|
|
|
<$transclude title="$:/core/ui/TagsEditor"/>
|
|
|
|
<$reveal state="$:/ShowEditPreview" type="match" text="yes">
|
|
<$transclude title="$:/core/ui/EditorHint"/> <$button type="set" set="$:/ShowEditPreview" setTo="no">hide preview</$button>
|
|
<div class="tw-tiddler-preview">
|
|
<div class="tw-tiddler-preview-preview">
|
|
<$view field="text" format="wikified"/>
|
|
</div>
|
|
<div class="tw-tiddler-preview-edit">
|
|
<$edit field="text"/>
|
|
</div>
|
|
</div>
|
|
</$reveal>
|
|
<$reveal state="$:/ShowEditPreview" type="nomatch" text="yes">
|
|
<$transclude title="$:/core/ui/EditorHint"/> <$button type="set" set="$:/ShowEditPreview" setTo="yes">show preview</$button>
|
|
<$edit field="text"/>
|
|
</$reveal>
|
|
|
|
<$transclude title="$:/core/ui/FieldEditor"/>
|