mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-27 04:43:12 +03:00
Focus title in editor when opening page.
closes #3038 - Adds new gh-focus-input component - Uses new component in editor
This commit is contained in:
parent
79c2132905
commit
9a08ff3216
7
core/client/components/gh-focus-input.js
Normal file
7
core/client/components/gh-focus-input.js
Normal file
@ -0,0 +1,7 @@
|
||||
var FocusInput = Ember.TextField.extend({
|
||||
becomeFocused: function () {
|
||||
this.$().val(this.$().val()).focus();
|
||||
}.on('didInsertElement')
|
||||
});
|
||||
|
||||
export default FocusInput;
|
@ -1,6 +1,6 @@
|
||||
<header>
|
||||
<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>
|
||||
</header>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user