2021-11-15 21:06:47 +00:00
|
|
|
title: $:/core/ui/EditTemplate/body/default
|
|
|
|
|
2024-02-14 16:22:54 +00:00
|
|
|
\function edit-preview-state()
|
|
|
|
[{$:/config/ShowEditPreview/PerTiddler}!match[yes]then[$:/state/showeditpreview]] :else[<qualified-preview-state>] +[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
|
2024-02-14 16:22:54 +00:00
|
|
|
qualified-preview-state=<<qualify "$:/state/showeditpreview">>
|
|
|
|
editPreviewStateTiddler={{{ [{$:/config/ShowEditPreview/PerTiddler}!match[yes]then[$:/state/showeditpreview]] :else[<qualified-preview-state>] }}}
|
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>
|
2024-02-14 16:22:54 +00:00
|
|
|
<div class={{{ [<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-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>
|