# [tw5] Re: Focus on edit after a tm-edit-tiddler message

Bumping this up - is there any way to set the focus to the text instead of
the title when you go into edit mode?


On Tuesday, September 3, 2019 at 5:17:49 PM UTC-5, Cade Roux wrote:
>
> 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,
>