mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-30 17:07:18 +00:00
Fix problem with formatting toolbar dropdowns
Cruft left over from the last big refactoring…
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
title: $:/core/ui/EditorToolbar/excise-dropdown
|
||||
|
||||
\define lingo-base() $:/language/Buttons/Excise/
|
||||
|
||||
\define body(config-title)
|
||||
''<<lingo Hint>>''
|
||||
|
||||
<<lingo Caption/NewTitle>> <$edit-text tag="input" tiddler="""$(config-title)$/new-title""" default="" focus="true"/>
|
||||
<<lingo Caption/NewTitle>> <$edit-text tag="input" tiddler="$config-title$/new-title" default="" focus="true"/>
|
||||
|
||||
<$set name="new-title" value={{$(config-title)$/new-title}}>
|
||||
<$set name="new-title" value={{$config-title$/new-title}}>
|
||||
<$list filter="""[<new-title>is[tiddler]]""">
|
||||
<div class="tc-error">
|
||||
<<lingo Caption/TiddlerExists>>
|
||||
@@ -13,33 +15,35 @@ title: $:/core/ui/EditorToolbar/excise-dropdown
|
||||
</$list>
|
||||
</$set>
|
||||
|
||||
<$checkbox tiddler="""$(config-title)$/tagnew""" field="text" checked="yes" unchecked="no" default="false"> <<lingo Caption/Tag>></$checkbox>
|
||||
<$checkbox tiddler="""$config-title$/tagnew""" field="text" checked="yes" unchecked="no" default="false"> <<lingo Caption/Tag>></$checkbox>
|
||||
|
||||
<<lingo Caption/Replace>> <$select tiddler="""$(config-title)$/type""" default="transclude">
|
||||
<<lingo Caption/Replace>> <$select tiddler="""$config-title$/type""" default="transclude">
|
||||
<option value="link"><<lingo Caption/Replace/Link>></option>
|
||||
<option value="transclude"><<lingo Caption/Replace/Transclusion>></option>
|
||||
<option value="macro"><<lingo Caption/Replace/Macro>></option>
|
||||
</$select>
|
||||
|
||||
<$reveal state="""$(config-title)$/type""" type="match" text="macro">
|
||||
<<lingo Caption/MacroName>> <$edit-text tag="input" tiddler="""$(config-title)$/macro-title""" default="translink"/>
|
||||
<$reveal state="""$config-title$/type""" type="match" text="macro">
|
||||
<<lingo Caption/MacroName>> <$edit-text tag="input" tiddler="""$config-title$/macro-title""" default="translink"/>
|
||||
</$reveal>
|
||||
|
||||
<$button>
|
||||
<$action-sendmessage
|
||||
$message="tm-edit-text-operation"
|
||||
$param="excise"
|
||||
title={{$(config-title)$/new-title}}
|
||||
type={{$(config-title)$/type}}
|
||||
macro={{$(config-title)$/macro-title}}
|
||||
tagnew={{$(config-title)$/tagnew}}
|
||||
title={{$config-title$/new-title}}
|
||||
type={{$config-title$/type}}
|
||||
macro={{$config-title$/macro-title}}
|
||||
tagnew={{$config-title$/tagnew}}
|
||||
/>
|
||||
<$action-deletetiddler
|
||||
$tiddler="""$(config-title)$/new-title"""
|
||||
$tiddler=<<qualify "$:/state/Excise/NewTitle">>
|
||||
/>
|
||||
<$action-deletetiddler
|
||||
$tiddler=<<dropdown-state>>
|
||||
/>
|
||||
<<lingo Caption/Excise>>
|
||||
</$button>
|
||||
\end
|
||||
|
||||
<$macrocall $name="body" config-title=<<qualify "$:/state/Excise/">>/>
|
||||
|
||||
Reference in New Issue
Block a user