diff --git a/core/ui/EditorToolbar/file-import.tid b/core/ui/EditorToolbar/file-import.tid index 6ccdf30494b..444112251c8 100644 --- a/core/ui/EditorToolbar/file-import.tid +++ b/core/ui/EditorToolbar/file-import.tid @@ -1,7 +1,7 @@ title: $:/core/ui/EditorToolbar/file-import tags: $:/tags/EditorTools -image: [img[$title$]] -file: [[$title$]] +image: [img[$1$]] +file: [[$1$]] regexp-search: regexp-replace: condition: [!has[type]] [type[text/vnd.tiddlywiki]] diff --git a/core/ui/FileImportTemplate.tid b/core/ui/FileImportTemplate.tid index 399a10052c4..496a6d6170a 100644 --- a/core/ui/FileImportTemplate.tid +++ b/core/ui/FileImportTemplate.tid @@ -11,7 +11,7 @@ title: $:/core/ui/FileImportTemplate \procedure postImportActions() <$list filter="[links[]]"> <$let escaped-title={{{ [search-replace:g:regexp,] }}}> - <$let insertText={{{ [get[type]prefix[image]thenelsesearch-replace[$title$],] }}}> + <$let insertText={{{ [get[type]prefix[image]thenelsesubstitute] }}}> <$action-sendmessage $message="tm-edit-text-operation" $param="insert-text" diff --git a/plugins/tiddlywiki/markdown/EditorToolbar/file-import.tid b/plugins/tiddlywiki/markdown/EditorToolbar/file-import.tid index 9335d20b89d..2d7998d73e3 100644 --- a/plugins/tiddlywiki/markdown/EditorToolbar/file-import.tid +++ b/plugins/tiddlywiki/markdown/EditorToolbar/file-import.tid @@ -1,7 +1,7 @@ title: $:/plugins/tiddlywiki/markdown/EditorToolbar/file-import tags: $:/tags/EditorTools -image: ![](<#$title$>) -file: [](<#$title$>) +image: ![](<#$1$>) +file: [](<#$1$>) regexp-search: [()<>\\] regexp-replace: \$& condition: [type[text/x-markdown]] [type[text/markdown]]