1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00
TiddlyWiki5/core/ui/EditorToolbar/stamp-dropdown.tid
Simon Huber c9f178ec87
Make Stamp-Dropdown sortable by Drag&Drop (#5981)
* Make stamp-dropdown reorderable by list-tagged-draggable macro

* Add stamp-dropdown ItemTemplate tiddler

* Make stamp-entries editable by ctrl-click

* Update stamp-dropdown-item-template.tid

* Add `tc-editortoolbar-stamp-button` class to stamp button

* Make stamp-dropdown look like before

* Update base.tid
2021-08-29 17:48:32 +01:00

27 lines
559 B
Plaintext

title: $:/core/ui/EditorToolbar/stamp-dropdown
<$macrocall $name="list-tagged-draggable" tag="$:/tags/TextEditor/Snippet" subFilter="!is[draft]" itemTemplate="$:/core/ui/EditorToolbar/StampDropdown/ItemTemplate"/>
----
<$button tag="a">
<$action-sendmessage
$message="tm-new-tiddler"
tags="$:/tags/TextEditor/Snippet"
caption={{$:/language/Buttons/Stamp/New/Title}}
text={{$:/language/Buttons/Stamp/New/Text}}
/>
<$action-deletetiddler
$tiddler=<<dropdown-state>>
/>
<em>
<$text text={{$:/language/Buttons/Stamp/Caption/New}}/>
</em>
</$button>