Auto-focus textarea when editing markdown

This commit is contained in:
Andrew Miner
2015-05-14 10:49:18 -07:00
parent 3c62c2f803
commit aff4c18987
@@ -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