2021-11-15 21:06:47 +00:00
|
|
|
title: $:/core/ui/EditTemplate/body/default
|
|
|
|
|
2023-10-06 20:49:02 +00:00
|
|
|
\function edit-preview-state()
|
|
|
|
[{$:/config/ShowEditPreview/PerTiddler}!match[yes]then[$:/state/showeditpreview]] :else[<qualify "$:/state/showeditpreview">] +[get[text]] :else[[no]]
|
|
|
|
\end
|
|
|
|
|
2021-11-15 21:06:47 +00:00
|
|
|
\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
|
|
|
|
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-10-17 10:54:20 +00:00
|
|
|
<div class={{{ [function[edit-preview-state]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-10-06 20:49:02 +00:00
|
|
|
<$list filter="[function[edit-preview-state]match[yes]]" variable="ignore">
|
|
|
|
|
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>
|