mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-04 23:39:57 +00:00
f90eb386ae
* Add support for \dir pragma
* Add "dir" attribute to reveal, edit, edit-text and edit-codemirror widgets
* Add $:/config/DefaultTextDirection hidden setting
* Revert accidentally commited test data
This reverts some of commit b83c1d160f
.
* Remove Codemirror plugin from Prerelease
Makes it easier to test things
* Fix framed text editor directionality in Firefox
* Add direction attribute for edit body template
* Missed closing brace
* Add docs for \dir pragma
* Templates should set text direction from a variable, not a transclusion
* Updates to framed.js in the light of PRs that have been merged since this
* Restore whitespace trim
* Docs dates
* Fix typo
* Clarify docs
71 lines
2.0 KiB
Plaintext
71 lines
2.0 KiB
Plaintext
title: $:/core/ui/EditTemplate/title
|
|
tags: $:/tags/EditTemplate
|
|
|
|
\whitespace trim
|
|
<$edit-text field="draft.title" class="tc-titlebar tc-edit-texteditor" focus={{{ [{$:/config/AutoFocus}match[title]then[true]] ~[[false]] }}} tabindex={{$:/config/EditTabIndex}} cancelPopups="yes" dir=<<tv-text-direction>>/>
|
|
|
|
<$vars pattern="""[\|\[\]{}]""" bad-chars="""`| [ ] { }`""">
|
|
|
|
<$list filter="[all[current]regexp:draft.title<pattern>]" variable="listItem">
|
|
|
|
<div class="tc-message-box" dir=<<tv-text-direction>>>
|
|
|
|
{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/BadCharacterWarning}}
|
|
|
|
</div>
|
|
|
|
</$list>
|
|
|
|
</$vars>
|
|
|
|
<$reveal state="!!draft.title" type="nomatch" text={{!!draft.of}} tag="div" dir=<<tv-text-direction>>>
|
|
|
|
<$list filter="[{!!draft.title}!is[missing]]" variable="listItem">
|
|
|
|
<div class="tc-message-box">
|
|
|
|
{{$:/core/images/warning}} {{$:/language/EditTemplate/Title/Exists/Prompt}}: <$link to={{!!draft.title}} />
|
|
|
|
</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>
|