mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 18:17:20 +00:00
Fix for titles including double quotes
This commit is contained in:
parent
5f08f89956
commit
9cd420290b
@ -3,9 +3,12 @@ tags: $:/tags/ViewToolbar
|
||||
caption: {{$:/core/images/new-here-button}} {{$:/language/Buttons/NewHere/Caption}}
|
||||
description: {{$:/language/Buttons/NewHere/Hint}}
|
||||
|
||||
\define newHereButtonTags()
|
||||
[[$(currentTiddler)$]]
|
||||
\end
|
||||
\define newHereButton()
|
||||
<$button tooltip={{$:/language/Buttons/NewHere/Hint}} aria-label={{$:/language/Buttons/NewHere/Caption}} class=<<tv-config-toolbar-class>>>
|
||||
<$action-sendmessage $message="tm-new-tiddler" tags="[[$(currentTiddler)$]]"/>
|
||||
<$action-sendmessage $message="tm-new-tiddler" tags=<<newHereButtonTags>>/>
|
||||
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/new-here-button}}
|
||||
</$list>
|
||||
|
@ -3,9 +3,12 @@ tags: $:/tags/ViewToolbar
|
||||
caption: {{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournalHere/Caption}}
|
||||
description: {{$:/language/Buttons/NewJournalHere/Hint}}
|
||||
|
||||
\define journalButtonTags()
|
||||
[[$(currentTiddlerTag)$]] $(journalTags)$
|
||||
\end
|
||||
\define journalButton()
|
||||
<$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=<<tv-config-toolbar-class>>>
|
||||
<$action-sendmessage $message="tm-new-tiddler" title=<<now "$(journalTitleTemplate)$">> tags="[[$(currentTiddlerTag)$]] $(journalTags)$"/>
|
||||
<$action-sendmessage $message="tm-new-tiddler" title=<<now "$(journalTitleTemplate)$">> tags=<<journalButtonTags>>/>
|
||||
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
||||
{{$:/core/images/new-journal-button}}
|
||||
</$list>
|
||||
|
Loading…
Reference in New Issue
Block a user