mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-18 07:44:51 +00:00
66b68f4a58
* add editFocus attribute to edit widget * add focus condition to title editTemplate * add focus condition to body-editor editTemplate * add focus attribute to type editTemplate * add focus attribute to fields editTemplate * add focus attribute to tag-picker * add $:/config/AutoFocus tiddler ... default focus is title * Update Basics.tid * Update ControlPanel.multids * Create minifocusswitcher.tid * Update minifocusswitcher.tid * Update Basics.tid * Update body-editor.tid
66 lines
1.9 KiB
Plaintext
66 lines
1.9 KiB
Plaintext
title: $:/core/ui/EditTemplate/title
|
|
tags: $:/tags/EditTemplate
|
|
|
|
<$edit-text field="draft.title" class="tc-titlebar tc-edit-texteditor" focus={{{ [{$:/config/AutoFocus}match[title]then[true]] ~[[false]] }}} tabindex={{$:/config/EditTabIndex}}/>
|
|
|
|
<$vars pattern="""[\|\[\]{}]""" bad-chars="""`| [ ] { }`""">
|
|
|
|
<$list filter="[all[current]regexp:draft.title<pattern>]" variable="listItem">
|
|
|
|
<div class="tc-message-box">
|
|
|
|
{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}}
|
|
|
|
</div>
|
|
|
|
</$list>
|
|
|
|
</$vars>
|
|
|
|
<$reveal state="!!draft.title" type="nomatch" text={{!!draft.of}} tag="div">
|
|
|
|
<$list filter="[{!!draft.title}!is[missing]]" variable="listItem">
|
|
|
|
<div class="tc-message-box">
|
|
|
|
{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}
|
|
|
|
</div>
|
|
|
|
</$list>
|
|
|
|
<$list filter="[{!!draft.of}!is[missing]]" variable="listItem">
|
|
|
|
<$vars fromTitle={{!!draft.of}} toTitle={{!!draft.title}}>
|
|
|
|
<$checkbox tiddler="$:/config/RelinkOnRename" field="text" checked="yes" unchecked="no" default="no"> {{$:/language/EditTemplate/Title/Relink/Prompt}}</$checkbox>
|
|
|
|
<$list filter="[title<fromTitle>backlinks[]limit[1]]" variable="listItem">
|
|
|
|
<$vars stateTiddler=<<qualify "$:/state/edit/references">> >
|
|
|
|
<$reveal type="nomatch" state=<<stateTiddler>> text="show">
|
|
<$button set=<<stateTiddler>> setTo="show" class="tc-btn-invisible">{{$:/core/images/right-arrow}}
|
|
<<lingo EditTemplate/Title/References/Prompt>></$button>
|
|
</$reveal>
|
|
<$reveal type="match" state=<<stateTiddler>> text="show">
|
|
<$button set=<<stateTiddler>> setTo="hide" class="tc-btn-invisible">{{$:/core/images/down-arrow}}
|
|
<<lingo EditTemplate/Title/References/Prompt>></$button>
|
|
</$reveal>
|
|
|
|
<$reveal type="match" state=<<stateTiddler>> text="show">
|
|
<$tiddler tiddler=<<fromTitle>> >
|
|
<$transclude tiddler="$:/core/ui/TiddlerInfo/References"/>
|
|
</$tiddler>
|
|
</$reveal>
|
|
|
|
</$vars>
|
|
|
|
</$list>
|
|
|
|
</$vars>
|
|
|
|
</$list>
|
|
|
|
</$reveal>
|