I have a set of macros that let me transclude a tiddler and offer a link next to the transcluded tiddler to edit it if it exists or a link button to create it if it's missing.
This is one of the relevant sub-macros for the Edit button:
\define edit-btn(title)
(<$button class="tc-btn-invisible tc-tiddlylink">
<$action-sendmessage $message="tm-edit-tiddler" $param="$title$"/>
Edit
</$button>)
\end
After the tm-edit-tiddler message, I want to set the focus on that draft tiddler that comes up so that the cursor is in the text field and not in the title field.
Any tips?
Thanks,
Cade