1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-07-06 04:03:16 +00:00
TiddlyWiki5/core/ui/EditorToolbar/link-dropdown.tid

41 lines
960 B
Plaintext
Raw Normal View History

title: $:/core/ui/EditorToolbar/link-dropdown
\define lingo-base() $:/language/Buttons/Link/
\define link-actions()
<$action-sendmessage
$message="tm-edit-text-operation"
$param="make-link"
text={{$:/temp/mytemp}}
/>
<$action-deletetiddler
$tiddler=<<dropdown-state>>
/>
\end
''<<lingo Hint>>''
<$set name="searchTiddler" value="$:/temp/search">
<$edit-text tiddler=<<searchTiddler>> type="search" tag="input" focus="true" placeholder={{$:/language/Search/Search}}/>
<$reveal tag="span" state=<<searchTiddler>> type="nomatch" text="">
<$button class="tc-btn-invisible" style="width: auto; display: inline-block; background-colour: inherit;">
<$action-setfield $tiddler=<<searchTiddler>> text="" />
{{$:/core/images/close-button}}
</$button>
</$reveal>
<$reveal tag="div" state=<<searchTiddler>> type="nomatch" text="">
<$linkcatcher actions=<<link-actions>> to="$:/temp/mytemp">
{{$:/core/ui/SearchResults}}
</$linkcatcher>
</$reveal>
</$set>