mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
🎨 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:
parent
2ef4472523
commit
12e251df8e
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user