mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-02-17 11:30:02 +00:00
Add whitespace trims to tag-picker macro (#4360)
This commit is contained in:
parent
18151cc193
commit
69bcb1609a
@ -15,12 +15,13 @@ tags: $:/tags/Macro
|
|||||||
\end
|
\end
|
||||||
|
|
||||||
\define tag-picker-inner()
|
\define tag-picker-inner()
|
||||||
|
\whitespace trim
|
||||||
<div class="tc-edit-add-tag">
|
<div class="tc-edit-add-tag">
|
||||||
<span class="tc-add-tag-name">
|
<span class="tc-add-tag-name">
|
||||||
<$keyboard key="ENTER" actions=<<add-tag-actions>>>
|
<$keyboard key="ENTER" actions=<<add-tag-actions>>>
|
||||||
<$edit-text tiddler=<<newTagNameTiddler>> tag="input" default="" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} focusPopup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-edit-texteditor tc-popup-handle" tabindex=<<tabIndex>> focus={{{ [{$:/config/AutoFocus}match[tags]then[true]] ~[[false]] }}}/>
|
<$edit-text tiddler=<<newTagNameTiddler>> tag="input" default="" placeholder={{$:/language/EditTemplate/Tags/Add/Placeholder}} focusPopup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-edit-texteditor tc-popup-handle" tabindex=<<tabIndex>> focus={{{ [{$:/config/AutoFocus}match[tags]then[true]] ~[[false]] }}}/>
|
||||||
</$keyboard>
|
</$keyboard>
|
||||||
</span> <$button popup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-btn-invisible" tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button> <span class="tc-add-tag-button">
|
</span> <$button popup=<<qualify "$:/state/popup/tags-auto-complete">> class="tc-btn-invisible" tooltip={{$:/language/EditTemplate/Tags/Dropdown/Hint}} aria-label={{$:/language/EditTemplate/Tags/Dropdown/Caption}}>{{$:/core/images/down-arrow}}</$button> <span class="tc-add-tag-button">
|
||||||
<$set name="tag" value={{{ [<newTagNameTiddler>get[text]] }}}>
|
<$set name="tag" value={{{ [<newTagNameTiddler>get[text]] }}}>
|
||||||
<$button set="$:/temp/NewTagName" setTo="" class="">
|
<$button set="$:/temp/NewTagName" setTo="" class="">
|
||||||
<<add-tag-actions>>
|
<<add-tag-actions>>
|
||||||
@ -49,6 +50,7 @@ tags: $:/tags/Macro
|
|||||||
</div>
|
</div>
|
||||||
\end
|
\end
|
||||||
\define tag-picker()
|
\define tag-picker()
|
||||||
|
\whitespace trim
|
||||||
<$list filter="[<newTagNameTiddler>match[]]" emptyMessage=<<tag-picker-inner>>>
|
<$list filter="[<newTagNameTiddler>match[]]" emptyMessage=<<tag-picker-inner>>>
|
||||||
<$set name="newTagNameTiddler" value=<<qualify "$:/temp/NewTagName">>>
|
<$set name="newTagNameTiddler" value=<<qualify "$:/temp/NewTagName">>>
|
||||||
<<tag-picker-inner>>
|
<<tag-picker-inner>>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user