0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Merge pull request #3039 from halfdan/3038-focus-title

Focus title in editor when opening page.
This commit is contained in:
Hannah Wolfe 2014-06-23 16:13:27 +01:00
commit 13053ff321
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,7 @@
var FocusInput = Ember.TextField.extend({
becomeFocused: function () {
this.$().val(this.$().val()).focus();
}.on('didInsertElement')
});
export default FocusInput;

View file

@ -1,6 +1,6 @@
<header> <header>
<section class="box entry-title"> <section class="box entry-title">
{{input type="text" id="entry-title" placeholder="Your Post Title" value=title tabindex="1"}} {{gh-focus-input type="text" id="entry-title" placeholder="Your Post Title" value=title tabindex="1"}}
</section> </section>
</header> </header>