mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-20 06:36:09 +00:00
22 lines
859 B
Plaintext
22 lines
859 B
Plaintext
title: $:/core/ui/EditTemplate/body
|
|
tags: $:/tags/EditTemplate
|
|
|
|
\define prompt()
|
|
Type the text for this tiddler
|
|
\end
|
|
<$reveal state="$:/ShowEditPreview" type="match" text="yes">
|
|
<em class="tw-edit"><$transclude tiddler="$:/core/ui/EditorHint"/></em> <$button type="set" set="$:/ShowEditPreview" setTo="no">hide preview</$button>
|
|
<div class="tw-tiddler-preview">
|
|
<div class="tw-tiddler-preview-preview">
|
|
<$transclude />
|
|
</div>
|
|
<div class="tw-tiddler-preview-edit">
|
|
<$edit field="text" class="tw-edit-texteditor" placeholder=<<prompt>>/>
|
|
</div>
|
|
</div>
|
|
</$reveal>
|
|
<$reveal state="$:/ShowEditPreview" type="nomatch" text="yes">
|
|
<em class="tw-edit"><$transclude tiddler="$:/core/ui/EditorHint"/></em> <$button type="set" set="$:/ShowEditPreview" setTo="yes">show preview</$button>
|
|
<$edit field="text" class="tw-edit-texteditor" placeholder=<<prompt>>/>
|
|
</$reveal>
|