From aff4c18987148c35f4b23f995c9feacd84ec6a0c Mon Sep 17 00:00:00 2001 From: Andrew Miner Date: Thu, 14 May 2015 10:49:18 -0700 Subject: [PATCH] Auto-focus textarea when editing markdown --- src/coffee/controllers/markdown_section_controller.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/coffee/controllers/markdown_section_controller.coffee b/src/coffee/controllers/markdown_section_controller.coffee index 528f38781..1f0e25edc 100644 --- a/src/coffee/controllers/markdown_section_controller.coffee +++ b/src/coffee/controllers/markdown_section_controller.coffee @@ -247,4 +247,8 @@ module.exports = class MarkdownSectionController extends BaseController else if toShow.length > 0 @show $el for $el in toShow + if @state is State.editing + @once Event.animate.show.finish, => + @$textarea.focus() + @$errorText.html errorText