Shouldn't {{!!draft.of}} rather be {{!!draft.title}}, like Eric originally suggested? Otherwise, this technique doesn't work for me when I change the title of the tiddler; it just stays open, which makes sense, because the (potentially) new/edited title is saved in the draft.title field, not draft.of, which contains the title of the original tiddler unchanged.
But apart from that: Thanks, Richard and Eric, I've been looking for something like this! :D On Friday, May 26, 2017 at 12:51:14 AM UTC+2, RichardWilliamSmith wrote: > > This seems to work (title:$:/core/ui/Buttons/save_and_close , > tags:$:/tags/EditToolbar) > > <$set name="ogtiddler" value={{!!draft.of}}> >> <$fieldmangler><$button tooltip={{$:/language/Buttons/Save/Hint}} >> aria-label={{$:/language/Buttons/Save/Caption}} >> class=<<tv-config-toolbar-class>>> >> <$action-sendmessage $message="tm-add-tag" $param={{$:/temp/NewTagName}}/> >> <$action-deletetiddler $tiddler="$:/temp/NewTagName"/> >> <$action-sendmessage $message="tm-add-field" >> $name={{$:/temp/newfieldname}} $value={{$:/temp/newfieldvalue}}/> >> <$action-deletetiddler $tiddler="$:/temp/newfieldname"/> >> <$action-deletetiddler $tiddler="$:/temp/newfieldvalue"/> >> <$action-sendmessage $message="tm-save-tiddler"/> >> <$action-sendmessage $message="tm-close-tiddler" $param=<<ogtiddler>>/> >> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]"> >> OK >> </$list> >> <$list filter="[<tv-config-toolbar-text>prefix[yes]]"> >> <span class="tc-btn-text"><$text >> text={{$:/language/Buttons/Save/Caption}}/></span> >> </$list> >> </$button> >> </$fieldmangler> >> </$set> > > > The mechanism is <$set name="ogtiddler" value={{!!draft.of}}> to grab the > name of the tiddler and <$action-sendmessage $message="tm-close-tiddler" > $param=<<ogtiddler>>/> to close it. > > Change 'OK' to whatever you'd like the button to look like. > > Regards, > Richard > > > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/df0f6424-9a8f-499b-a3bc-0a83b0db42d5%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.