mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Fix-ups to make the new edit widgets work
This commit is contained in:
parent
78bc89cbdb
commit
ebcd5177ec
@ -1,13 +1,14 @@
|
||||
title: $:/core/ui/EditTemplate
|
||||
modifier: JeremyRuston
|
||||
|
||||
<span class="tw-tiddler-controls title"> <$button message="tw-delete-tiddler" class="btn-invisible">{{$:/core/images/delete-button}}</$button> <$button message="tw-cancel-tiddler" class="btn-invisible">{{$:/core/images/cancel-button}}</$button> <$button message="tw-save-tiddler" class="btn-invisible">{{$:/core/images/done-button}}</$button> </span>
|
||||
\define frame-classes()
|
||||
tw-tiddler-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$
|
||||
\end
|
||||
<div class=<<frame-classes>>><span class="tw-tiddler-controls title"> <$button message="tw-delete-tiddler" class="btn-invisible">{{$:/core/images/delete-button}}</$button> <$button message="tw-cancel-tiddler" class="btn-invisible">{{$:/core/images/cancel-button}}</$button> <$button message="tw-save-tiddler" class="btn-invisible">{{$:/core/images/done-button}}</$button> </span>
|
||||
|
||||
<$view field="title"/>
|
||||
|
||||
@@.title
|
||||
<$edit field="draft.title"/>
|
||||
@@
|
||||
<$edit-text field="draft.title" class="title tw-edit-texteditor"/>
|
||||
|
||||
<$transclude title="$:/core/ui/TagsEditor"/>
|
||||
|
||||
@ -18,13 +19,13 @@ modifier: JeremyRuston
|
||||
<$transclude />
|
||||
</div>
|
||||
<div class="tw-tiddler-preview-edit">
|
||||
<$edit field="text"/>
|
||||
<$edit field="text" class="tw-edit-texteditor"/>
|
||||
</div>
|
||||
</div>
|
||||
</$reveal>
|
||||
<$reveal state="$:/ShowEditPreview" type="nomatch" text="yes">
|
||||
<$transclude title="$:/core/ui/EditorHint"/> <$button type="set" set="$:/ShowEditPreview" setTo="yes">show preview</$button>
|
||||
<$edit field="text"/>
|
||||
<$edit field="text" class="tw-edit-texteditor"/>
|
||||
</$reveal>
|
||||
|
||||
<$transclude title="$:/core/ui/FieldEditor"/>
|
||||
<$transclude title="$:/core/ui/FieldEditor"/></div>
|
||||
|
@ -6,7 +6,7 @@ title: $:/core/ui/SideBar
|
||||
|
||||
<$linkcatcher to="$:/temp/search">
|
||||
|
||||
<div class="tw-search"><$edit tiddler="$:/temp/search" type="search" requireFocus="yes"/><$reveal state="$:/temp/search" type="nomatch" text=""> <$link to="" class="btn-invisible">{{$:/core/images/close-button}}</$link></$reveal></div>
|
||||
<div class="tw-search"><$edit-text title="$:/temp/search" type="search" tag="input"/><$reveal state="$:/temp/search" type="nomatch" text=""> <$link to="" class="btn-invisible">{{$:/core/images/close-button}}</$link></$reveal></div>
|
||||
|
||||
</$linkcatcher>
|
||||
|
||||
@ -16,7 +16,7 @@ title: $:/core/ui/SideBar
|
||||
|
||||
//<small><$count filter="[!is[system]search{$:/temp/search}]"/> matches</small>//
|
||||
|
||||
<$list filter="[!is[system]search{$:/temp/search}sort[title]limit[250]]"/>
|
||||
<$list filter="[!is[system]search{$:/temp/search}sort[title]limit[250]]" template="$:/core/ui/ListItemTemplate"/>
|
||||
|
||||
</div>
|
||||
|
||||
|
@ -524,7 +524,7 @@ a.tw-tiddlylink-external {
|
||||
color: #888888;
|
||||
}
|
||||
|
||||
.tw-tiddler-frame .tw-edit-texteditor input, .tw-tiddler-frame .tw-edit-texteditor textarea {
|
||||
.tw-tiddler-frame input.tw-edit-texteditor, .tw-tiddler-frame textarea.tw-edit-texteditor {
|
||||
width: 100%;
|
||||
padding: 3px 3px 3px 3px;
|
||||
border: 1px solid #ccc;
|
||||
@ -533,7 +533,7 @@ a.tw-tiddlylink-external {
|
||||
margin: 4px 0 4px 0;
|
||||
}
|
||||
|
||||
.tw-tiddler-frame .tw-edit-texteditor input {
|
||||
.tw-tiddler-frame input.tw-edit-texteditor {
|
||||
background-color: #f8f8f8;
|
||||
<<box-shadow "inset 0 1px 8px rgba(0, 0, 0, 0.15)">>
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user