Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
🎨 only focus editor body for new posts (#795)
Browse files Browse the repository at this point in the history
closes TryGhost/Ghost#8718

- only give focus to editor body when starting a new post
- update the title and body placeholders
  • Loading branch information
kevinansfield authored and kirrg001 committed Jul 20, 2017
1 parent 6ce07e9 commit c0c0bc7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/templates/editor/edit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
--}}
{{#gh-markdown-editor
tabindex="2"
placeholder="Now begin writing your story..."
autofocus=true
placeholder="Begin writing your story..."
autofocus=model.isNew
uploadedImageUrls=editor.uploadedImageUrls
mobiledoc=(readonly model.scratch)
isFullScreen=editor.isFullScreen
Expand All @@ -54,7 +54,7 @@
<div class="gh-markdown-editor-pane">
{{gh-textarea model.titleScratch
class="gh-editor-title"
placeholder="Your Post Title"
placeholder="Post Title"
tabindex="1"
autoExpand=".gh-markdown-editor-pane"
focusOut=(action "saveTitle")
Expand Down

0 comments on commit c0c0bc7

Please sign in to comment.