mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-15 03:12:54 +03:00
a0af248df4
closes TryGhost/Ghost#8525 - always give focus to the editor content area by default when loading the editor - allow content autosave to work for new posts (it was previously turned off for new posts) - move transition-on-save behaviour from editor/new controller into the controller mixin's save routine - cancel background autosave when "are you sure you want to leave?" modal is shown as it can cause the "leave" option to fail because it attempts to delete the post record that can be in flight (plus if we're saving anyway it doesn't make much sense to ask the user 🙈) - this is quite an edge-case as it will only happen if the user makes a content change to a draft post then tries to leave the screen within 3 seconds - change the editor placeholder text - wait for any save task to finish before exiting the new post route (fixes infinite loop and popup of "are you sure you want to leave?" modal that is then closed automatically straight away - add a guard to the `gh-post-settings-menu` component so that if the authors query takes a while we don't end up trying to set a value when the component has already been removed |
||
---|---|---|
.. | ||
edit.js | ||
new.js |