1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 10:07:19 +00:00

Comment plugin: Autofocus new comment edit box

Fixes #3408
This commit is contained in:
Jermolene 2018-08-22 09:57:31 +01:00
parent 0151d8e564
commit 03602215c4

View File

@ -13,7 +13,7 @@ title: $:/plugins/tiddlywiki/comments/comments-template
</div>
<div class="tc-comment-entry-body">
<$reveal type="match" state="!!edit-mode" text="yes">
<$edit-text tiddler=<<currentTiddler>> tag="textarea"/>
<$edit-text tiddler=<<currentTiddler>> tag="textarea" focus="true"/>
</$reveal>
<$reveal type="nomatch" state="!!edit-mode" text="yes">
<$transclude tiddler=<<currentTiddler>> mode="block"/>