1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-10-30 03:36:16 +00:00

Make <textarea> auto-focus on the editor page

This commit is contained in:
handlerug 2021-06-13 23:29:54 +07:00
parent 60deff0ecd
commit feea6bf3d7
No known key found for this signature in database
GPG Key ID: 38009F0605051491
2 changed files with 2 additions and 2 deletions

View File

@ -76,7 +76,7 @@
{%s= warning %}
<form method="post" class="edit-form"
action="/upload-text/{%s hyphaName %}">
<textarea name="text" class="edit-form__textarea">{%s textAreaFill %}</textarea>
<textarea name="text" class="edit-form__textarea" autofocus>{%s textAreaFill %}</textarea>
<br/>
<input type="submit" name="action" value="Save" class="edit-form__save"/>
<input type="submit" name="action" value="Preview" class="edit-form__preview">

View File

@ -199,7 +199,7 @@ func StreamEditHTML(qw422016 *qt422016.Writer, rq *http.Request, hyphaName, text
qw422016.E().S(hyphaName)
//line views/mutators.qtpl:78
qw422016.N().S(`">
<textarea name="text" class="edit-form__textarea">`)
<textarea name="text" class="edit-form__textarea" autofocus>`)
//line views/mutators.qtpl:79
qw422016.E().S(textAreaFill)
//line views/mutators.qtpl:79