Some Tiddlers are difficult to edit, because in viewmode they cause a problems like recursive transclusions or hide the normal interface. I wanted to buid a button to edit tiddlers in editmode, but espesially closing and saving (in order not have the unwanted effect) is difficult. How can this be done, here my starter.
<$tiddler tiddler={{$:/temp/tools/tiddler}}>
<$edit-text tiddler="$:/temp/tools/tiddler" field="text" tag=input/><p/>
<$navigator story="$:/StoryList">
<$button message="tm-edit-tiddler" >
{{$:/language/ControlPanel/Settings/LinkToBehaviour/Caption}} in Editmode: {{$:/temp/tools/tiddler}}
</$button>
<$button message="tm-close-tiddler" >
<$action-sendmessage $message="tm-save-tiddler"/>
<$action-sendmessage $message="tm-close-tiddler"/>save and close
</$button>
</$navigator>
</$tiddler>