2021-11-15 21:06:47 +00:00
|
|
|
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
|
|
|
|
|
2022-03-26 14:16:01 +00:00
|
|
|
\whitespace trim
|
|
|
|
<$let
|
|
|
|
edit-preview-state={{{ [{$:/config/ShowEditPreview/PerTiddler}!match[yes]then[$:/state/showeditpreview]] :else[<qualify "$:/state/showeditpreview">] }}}
|
|
|
|
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" tag="div">
|
2023-06-21 16:13:33 +00:00
|
|
|
<div class="tc-tiddler-preview">
|
2021-11-15 21:06:47 +00:00
|
|
|
|
|
|
|
<$transclude tiddler="$:/core/ui/EditTemplate/body/editor" mode="inline"/>
|
|
|
|
|
2022-11-14 17:48:00 +00:00
|
|
|
<div class="tc-tiddler-preview-preview" data-tiddler-title={{!!draft.title}} data-tags={{!!tags}}>
|
2021-11-15 21:06:47 +00:00
|
|
|
|
|
|
|
<$transclude tiddler={{$:/state/editpreviewtype}} mode="inline">
|
|
|
|
|
|
|
|
<$transclude tiddler="$:/core/ui/EditTemplate/body/preview/output" mode="inline"/>
|
|
|
|
|
|
|
|
</$transclude>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</$reveal>
|
|
|
|
|
2023-06-21 16:13:33 +00:00
|
|
|
<$reveal stateTitle=<<edit-preview-state>> type="nomatch" text="yes" tag="div">
|
2021-11-15 21:06:47 +00:00
|
|
|
|
|
|
|
<$transclude tiddler="$:/core/ui/EditTemplate/body/editor" mode="inline"/>
|
|
|
|
|
|
|
|
</$reveal>
|
|
|
|
</$dropzone>
|
2022-03-26 14:16:01 +00:00
|
|
|
</$let>
|