0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Automatically focus title on editor

closes #719
This commit is contained in:
Hannah Wolfe 2013-09-15 17:10:57 +01:00
parent 8d038b8bf2
commit a4016b857c

View file

@ -254,7 +254,7 @@
// Add the container view for the Publish Bar
this.addSubview(new PublishBar({el: "#publish-bar", model: this.model})).render();
this.$('#entry-title').val(this.model.get('title'));
this.$('#entry-title').val(this.model.get('title')).focus();
this.$('#entry-markdown').html(this.model.get('markdown'));
this.initMarkdown();