🎨 only focus editor body for new posts (#795)

closes https://github.com/TryGhost/Ghost/issues/8718

- only give focus to editor body when starting a new post
- update the title and body placeholders
This commit is contained in:
Kevin Ansfield 2017-07-20 16:41:30 +01:00 committed by Katharina Irrgang
parent 2ef4472523
commit 12e251df8e

View File

@ -37,8 +37,8 @@
--}} --}}
{{#gh-markdown-editor {{#gh-markdown-editor
tabindex="2" tabindex="2"
placeholder="Now begin writing your story..." placeholder="Begin writing your story..."
autofocus=true autofocus=model.isNew
uploadedImageUrls=editor.uploadedImageUrls uploadedImageUrls=editor.uploadedImageUrls
mobiledoc=(readonly model.scratch) mobiledoc=(readonly model.scratch)
isFullScreen=editor.isFullScreen isFullScreen=editor.isFullScreen
@ -54,7 +54,7 @@
<div class="gh-markdown-editor-pane"> <div class="gh-markdown-editor-pane">
{{gh-textarea model.titleScratch {{gh-textarea model.titleScratch
class="gh-editor-title" class="gh-editor-title"
placeholder="Your Post Title" placeholder="Post Title"
tabindex="1" tabindex="1"
autoExpand=".gh-markdown-editor-pane" autoExpand=".gh-markdown-editor-pane"
focusOut=(action "saveTitle") focusOut=(action "saveTitle")