1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 00:50:28 +00:00

Add dropdown interface for setting the type of a tiddler

This commit is contained in:
Jermolene 2013-11-18 09:00:25 +00:00
parent 7658789971
commit 90a0eca2f5
7 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,3 @@
title: $:/docs/types/image/gif
description: GIF image
name: image/gif

View File

@ -0,0 +1,3 @@
title: $:/docs/types/image/jpeg
description: JPEG image
name: image/jpeg

View File

@ -0,0 +1,3 @@
title: $:/docs/types/image/png
description: PNG image
name: image/png

View File

@ -0,0 +1,3 @@
title: $:/docs/types/text/plain
description: Plain text
name: text/plain

View File

@ -0,0 +1,3 @@
title: $:/docs/types/text/vnd.tiddlywiki
description: TW5 wikitext
name: text/vnd.tiddlywiki

View File

@ -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>

View File

@ -0,0 +1,3 @@
title: $:/docs/types/text/x-markdown
description: Markdown
name: text/x-markdown