kopia lustrzana https://github.com/miklobit/TiddlyWiki5
Add dropdown interface for setting the type of a tiddler
rodzic
7658789971
commit
90a0eca2f5
|
@ -0,0 +1,3 @@
|
|||
title: $:/docs/types/image/gif
|
||||
description: GIF image
|
||||
name: image/gif
|
|
@ -0,0 +1,3 @@
|
|||
title: $:/docs/types/image/jpeg
|
||||
description: JPEG image
|
||||
name: image/jpeg
|
|
@ -0,0 +1,3 @@
|
|||
title: $:/docs/types/image/png
|
||||
description: PNG image
|
||||
name: image/png
|
|
@ -0,0 +1,3 @@
|
|||
title: $:/docs/types/text/plain
|
||||
description: Plain text
|
||||
name: text/plain
|
|
@ -0,0 +1,3 @@
|
|||
title: $:/docs/types/text/vnd.tiddlywiki
|
||||
description: TW5 wikitext
|
||||
name: text/vnd.tiddlywiki
|
|
@ -0,0 +1,15 @@
|
|||
title: $:/core/ui/EditTemplate/type
|
||||
tags: $:/tags/EditTemplate
|
||||
|
||||
<p>//Type:// <$edit-text field="type" tag="input" default="" placeholder="type" focusPopup=<<qualify "$:/state/typeDropdown">> class="tw-edit-typeeditor"/> <$button popup=<<qualify "$:/state/typeDropdown">> class="btn-invisible btn-dropdown">{{$:/core/images/down-arrow}}</$button></p>
|
||||
|
||||
<div class="tw-block-dropdown-wrapper">
|
||||
<$reveal state=<<qualify "$:/state/typeDropdown">> type="nomatch" text="" default="">
|
||||
<div class="tw-block-dropdown tw-edit-type-dropdown">
|
||||
<$linkcatcher to="!!type">
|
||||
<$list filter="[is[shadow]prefix[$:/docs/types/]] [!is[shadow]prefix[$:/docs/types/]] +[sort[description]]"><$link to={{!!name}}><$view field="description"/> (<$view field="name"/>)</$link>
|
||||
</$list>
|
||||
</$linkcatcher>
|
||||
</div>
|
||||
</$reveal>
|
||||
</div>
|
|
@ -0,0 +1,3 @@
|
|||
title: $:/docs/types/text/x-markdown
|
||||
description: Markdown
|
||||
name: text/x-markdown
|
Ładowanie…
Reference in New Issue