mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-15 06:14:53 +00:00
39 lines
1.4 KiB
Plaintext
39 lines
1.4 KiB
Plaintext
|
title: $:/core/ui/EditTemplate/body/default
|
||
|
|
||
|
\define config-visibility-title()
|
||
|
$:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$
|
||
|
\end
|
||
|
|
||
|
\define importFileActions()
|
||
|
<$action-popup $state=<<importState>> $coords="(0,0,0,0)" $floating="yes"/>
|
||
|
\end
|
||
|
|
||
|
<$set name="edit-preview-state" value={{{ [{$:/config/ShowEditPreview/PerTiddler}!match[yes]then[$:/state/showeditpreview]] :else[<qualify "$:/state/showeditpreview">] }}}>
|
||
|
<$vars importTitle=<<qualify $:/ImportImage>> importState=<<qualify $:/state/ImportImage>> >
|
||
|
<$dropzone importTitle=<<importTitle>> autoOpenOnImport="no" contentTypesFilter={{$:/config/Editor/ImportContentTypesFilter}} class="tc-dropzone-editor" enable={{{ [{$:/config/DragAndDrop/Enable}match[no]] :else[subfilter{$:/config/Editor/EnableImportFilter}then[yes]else[no]] }}} filesOnly="yes" actions=<<importFileActions>> ><$reveal stateTitle=<<edit-preview-state>> type="match" text="yes">
|
||
|
<div class="tc-tiddler-preview">
|
||
|
|
||
|
<$transclude tiddler="$:/core/ui/EditTemplate/body/editor" mode="inline"/>
|
||
|
|
||
|
<div class="tc-tiddler-preview-preview">
|
||
|
|
||
|
<$transclude tiddler={{$:/state/editpreviewtype}} mode="inline">
|
||
|
|
||
|
<$transclude tiddler="$:/core/ui/EditTemplate/body/preview/output" mode="inline"/>
|
||
|
|
||
|
</$transclude>
|
||
|
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
</$reveal>
|
||
|
|
||
|
<$reveal stateTitle=<<edit-preview-state>> type="nomatch" text="yes">
|
||
|
|
||
|
<$transclude tiddler="$:/core/ui/EditTemplate/body/editor" mode="inline"/>
|
||
|
|
||
|
</$reveal>
|
||
|
</$dropzone>
|
||
|
</$vars>
|
||
|
</$set>
|