From ba784d64fffece75cbc211698ab29adc304239c5 Mon Sep 17 00:00:00 2001 From: BurningTreeC Date: Sun, 19 Jan 2025 10:19:26 +0100 Subject: [PATCH] address some of pmarios mentioned issues --- core/ui/EditTemplate/body/default.tid | 44 ++++++++++++++++----------- 1 file changed, 27 insertions(+), 17 deletions(-) diff --git a/core/ui/EditTemplate/body/default.tid b/core/ui/EditTemplate/body/default.tid index 0f57bb53877..a3a81cea04e 100644 --- a/core/ui/EditTemplate/body/default.tid +++ b/core/ui/EditTemplate/body/default.tid @@ -6,7 +6,14 @@ title: $:/core/ui/EditTemplate/body/default [{$:/config/ShowEditPreview/PerTiddler}!match[yes]then[$:/state/showeditpreview]] :else[] +[get[text]] :else[[no]] \end -\function get.tc-editor.class() [{!!type}is[blank]then[tc-edit-texteditor tc-edit-texteditor-body]] [{!!type}is[blank]thenmatch[yes]thenaddprefix[tc-edit-texteditor-identified-]] [{!!type}addprefix[$:/config/EditorTypeMappings/]get[text]!match[bitmap]then[tc-edit-texteditor tc-edit-texteditor-body]] [{!!type}addprefix[$:/config/EditorTypeMappings/]get[text]!match[bitmap]thenmatch[yes]thenaddprefix[tc-edit-texteditor-identified-]] [{!!type}addprefix[$:/config/EditorTypeMappings/]get[text]match[bitmap]then[tc-edit-bitmapeditor tc-edit-bitmapeditor-body]] [{!!type}addprefix[$:/config/EditorTypeMappings/]get[text]match[bitmap]thenmatch[yes]thenaddprefix[tc-edit-bitmapeditor-identified-]] +[join[ ]] +\function get.tc-editor.class() +[{!!type}is[blank]then[tc-edit-texteditor tc-edit-texteditor-body]] +[{!!type}is[blank]thenmatch[yes]thenaddprefix[tc-edit-texteditor-identified-]] +[{!!type}addprefix[$:/config/EditorTypeMappings/]get[text]!match[bitmap]then[tc-edit-texteditor tc-edit-texteditor-body]] +[{!!type}addprefix[$:/config/EditorTypeMappings/]get[text]!match[bitmap]thenmatch[yes]thenaddprefix[tc-edit-texteditor-identified-]] +[{!!type}addprefix[$:/config/EditorTypeMappings/]get[text]match[bitmap]then[tc-edit-bitmapeditor tc-edit-bitmapeditor-body]] +[{!!type}addprefix[$:/config/EditorTypeMappings/]get[text]match[bitmap]thenmatch[yes]thenaddprefix[tc-edit-bitmapeditor-identified-]] +[join[ ]] +\end \function get.tc-tiddler-preview-preview.class() tc-tiddler-preview-preview [addprefix[tc-tiddler-preview-preview-identified-]] +[join[ ]] @@ -56,20 +63,23 @@ $:/config/EditorToolbarButtons/Visibility/$(currentTiddler)$ identifier={{{ [addsuffixsha256[]] }}} sidebarWidthTiddler={{{ [addprefix[$:/state/resizer/previewwidth-]] }}} > -<$dropzone 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=<> > -
- -<$transclude - $variable="editor-preview-slider" - class="tc-edit-texteditor-slider" - template="tp-tiddler-editor-preview" - mode="inline" - padding="0px" - sliderWidth=<> -/> - -
- - - + <$dropzone 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=<> + > +
+ <$transclude + $variable="editor-preview-slider" + class="tc-edit-texteditor-slider" + template="tp-tiddler-editor-preview" + mode="inline" + padding="0px" + sliderWidth=<> + /> +
+