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
|
2023-12-21 10:36:08 +00:00
|
|
|
editPreviewStateTiddler={{{ [{$:/config/ShowEditPreview/PerTiddler}!match[yes]then[$:/state/showeditpreview]] :else[<qualify "$:/state/showeditpreview">] }}}
|
2022-03-26 14:16:01 +00:00
|
|
|
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>> >
|
2023-10-06 20:49:02 +00:00
|
|
|
<div>
|
2023-12-21 10:36:08 +00:00
|
|
|
<div class={{{ [<editPreviewStateTiddler>get[text]match[yes]then[tc-tiddler-preview]else[tc-tiddler-preview-hidden]] [[tc-tiddler-editor]] +[join[ ]] }}}>
|
2021-11-15 21:06:47 +00:00
|
|
|
|
|
|
|
<$transclude tiddler="$:/core/ui/EditTemplate/body/editor" mode="inline"/>
|
|
|
|
|
2023-12-21 10:36:08 +00:00
|
|
|
<$list filter="[<editPreviewStateTiddler>get[text]match[yes]]" variable="ignore">
|
2023-10-06 20:49:02 +00:00
|
|
|
|
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>
|
|
|
|
|
2023-10-06 20:49:02 +00:00
|
|
|
</$list>
|
2021-11-15 21:06:47 +00:00
|
|
|
|
2023-10-06 20:49:02 +00:00
|
|
|
</div>
|
2021-11-15 21:06:47 +00:00
|
|
|
|
2023-10-06 20:49:02 +00:00
|
|
|
</div>
|
2021-11-15 21:06:47 +00:00
|
|
|
|
|
|
|
</$dropzone>
|
2023-10-06 20:49:02 +00:00
|
|
|
|
2022-03-26 14:16:01 +00:00
|
|
|
</$let>
|