mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-09-19 18:59:42 +00:00
e59f606566
* Add cancelPopups attribute to edit widget * Add cancelPopups attribute to factory.js * Cancel popups in editor/simple.js * Cancel popups on focus in engines/framed.js * Cancel popups on focus in CodeMirror engine * Add cancelPopups="yes" to tag-picker * Add cancelPopups="yes" to sidebar search * Add cancelPopups="yes" to editor * Add cancelPopups="yes" to fields EditTemplate * Update body.tid * Add cancelPopups="yes" to title EditTemplate * Add cancelPopups="yes" to type EditTemplate * Update EditTextWidget.tid * Update EditWidget.tid * Add cancelPopups="yes" to menubar plugin search * Update tag-picker.tid * Update tags.tid
38 lines
1.4 KiB
Plaintext
38 lines
1.4 KiB
Plaintext
title: $:/core/ui/EditTemplate/tags
|
|
tags: $:/tags/EditTemplate
|
|
|
|
\whitespace trim
|
|
|
|
\define lingo-base() $:/language/EditTemplate/
|
|
|
|
\define tag-styles()
|
|
background-color:$(backgroundColor)$;
|
|
fill:$(foregroundColor)$;
|
|
color:$(foregroundColor)$;
|
|
\end
|
|
|
|
\define tag-body-inner(colour,fallbackTarget,colourA,colourB,icon)
|
|
\whitespace trim
|
|
<$vars foregroundColor=<<contrastcolour target:"""$colour$""" fallbackTarget:"""$fallbackTarget$""" colourA:"""$colourA$""" colourB:"""$colourB$""">> backgroundColor="""$colour$""">
|
|
<span style=<<tag-styles>> class="tc-tag-label tc-tag-list-item">
|
|
<$transclude tiddler="""$icon$"""/><$view field="title" format="text" />
|
|
<$button message="tm-remove-tag" param={{!!title}} class="tc-btn-invisible tc-remove-tag-button">{{$:/core/images/close-button}}</$button>
|
|
</span>
|
|
</$vars>
|
|
\end
|
|
|
|
\define tag-body(colour,palette,icon)
|
|
<$macrocall $name="tag-body-inner" colour="""$colour$""" fallbackTarget={{$palette$##tag-background}} colourA={{$palette$##foreground}} colourB={{$palette$##background}} icon="""$icon$"""/>
|
|
\end
|
|
|
|
<div class="tc-edit-tags">
|
|
<$fieldmangler>
|
|
<$list filter="[all[current]tags[]sort[title]]" storyview="pop">
|
|
<$macrocall $name="tag-body" colour={{!!color}} palette={{$:/palette}} icon={{!!icon}}/>
|
|
</$list>
|
|
<$vars tabIndex={{$:/config/EditTabIndex}} cancelPopups="yes">
|
|
<$macrocall $name="tag-picker"/>
|
|
</$vars>
|
|
</$fieldmangler>
|
|
</div>
|