mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-15 06:14:53 +00:00
e051eb7d90
Now we’re done with the text that lives in tiddlers, and we’ll need to get on with the text that is embedded in code modules.
20 lines
913 B
Plaintext
20 lines
913 B
Plaintext
title: $:/core/ui/EditTemplate/body
|
|
tags: $:/tags/EditTemplate
|
|
|
|
\define lingo-base() $:/language/EditTemplate/
|
|
<$reveal state="$:/ShowEditPreview" type="match" text="yes">
|
|
<em class="tw-edit"><<lingo Body/Hint>></em> <$button type="set" set="$:/ShowEditPreview" setTo="no"><<lingo Body/Preview/Button/Hide>></$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={{$:/language/EditTemplate/Body/Placeholder}}/>
|
|
</div>
|
|
</div>
|
|
</$reveal>
|
|
<$reveal state="$:/ShowEditPreview" type="nomatch" text="yes">
|
|
<em class="tw-edit"><<lingo Body/Hint>></em> <$button type="set" set="$:/ShowEditPreview" setTo="yes"><<lingo Body/Preview/Button/Show>></$button>
|
|
<$edit field="text" class="tw-edit-texteditor" placeholder={{$:/language/EditTemplate/Body/Placeholder}}/>
|
|
</$reveal>
|