Ghost/ghost/admin/app/mixins
Kevin Ansfield a0af248df4 🎨 Focus editor content area by default (#768)
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
2017-07-10 17:09:50 +02:00
..
body-event-listener.js 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00
current-user-settings.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
dropdown-mixin.js 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00
editor-base-controller.js 🎨 Focus editor content area by default (#768) 2017-07-10 17:09:50 +02:00
editor-base-route.js 🎨 Focus editor content area by default (#768) 2017-07-10 17:09:50 +02:00
infinite-scroll.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
pagination.js 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00
settings-menu-component.js 🎨 convert post-settings-menu into a component (#137) 2017-03-10 14:30:01 +00:00
shortcuts-route.js remove zen styling (#160) 2016-07-31 20:35:19 +01:00
shortcuts.js remove zen styling (#160) 2016-07-31 20:35:19 +01:00
slug-url.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
style-body.js convert ember imports to ember-cli-shim imports where possible (#95) 2016-06-30 11:21:47 +01:00
text-input.js 🐛 fix enter key not working in text inputs/areas (#771) 2017-07-10 19:09:11 +07:00
unauthenticated-route-mixin.js 🎨 remove usage of ghost's {{asset}} helper in index.html (#574) 2017-03-14 17:04:46 +01:00
validation-engine.js 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00
validation-state.js 💄🐷 sort-imports eslint rule (#712) 2017-05-29 20:50:03 +02:00