mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-16 14:54:51 +00:00
51 lines
1.2 KiB
Plaintext
51 lines
1.2 KiB
Plaintext
title: $:/core/ui/EditTemplate/body
|
|
tags: $:/tags/EditTemplate
|
|
|
|
\define lingo-base() $:/language/EditTemplate/Body/
|
|
\define config-visibility-title()
|
|
$:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$
|
|
\end
|
|
<$list filter="[all[current]has[_canonical_uri]]">
|
|
|
|
<div class="tc-message-box">
|
|
|
|
<<lingo External/Hint>>
|
|
|
|
<a href={{!!_canonical_uri}}><$text text={{!!_canonical_uri}}/></a>
|
|
|
|
<$edit-text field="_canonical_uri" class="tc-edit-fields" tabindex={{$:/config/EditTabIndex}}></$edit-text>
|
|
|
|
</div>
|
|
|
|
</$list>
|
|
|
|
<$list filter="[all[current]!has[_canonical_uri]]">
|
|
|
|
<$reveal state="$:/state/showeditpreview" type="match" text="yes">
|
|
|
|
<div class="tc-tiddler-preview">
|
|
|
|
<$transclude tiddler="$:/core/ui/EditTemplate/body/editor" mode="inline"/>
|
|
|
|
<div class="tc-tiddler-preview-preview" dir={{$:/config/DefaultTextDirection}}>
|
|
|
|
<$transclude tiddler={{$:/state/editpreviewtype}} mode="inline">
|
|
|
|
<$transclude tiddler="$:/core/ui/EditTemplate/body/preview/output" mode="inline"/>
|
|
|
|
</$transclude>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal state="$:/state/showeditpreview" type="nomatch" text="yes" dir={{$:/config/DefaultTextDirection}}>
|
|
|
|
<$transclude tiddler="$:/core/ui/EditTemplate/body/editor" mode="inline"/>
|
|
|
|
</$reveal>
|
|
|
|
</$list>
|