TryGhost/Ghost — pull request #4459 by novaugust (2014-11-16 00:10:40+00:00)
Title: Fix high latency autosave bug in editor.new

Closes #4400
- Clean up willtransition logic in editor-base-route

Known bug: If you have typed into the body before the transition, after the transition completes your cursor is reset to the start of the line.
I've tried fixing this by having codemirror intelligently `goToDocEnd` after being initialized, but it instead places it halfway. I'm still working on a fix for that. I'm not sure what's the greater evil; 4400 or the one-time cursor jump.

The problem comes from the fact that the entire template is torn down and rebuilt, even though nothing actually changes. I think that the ultimate solution for this may be to remove the `editor.new` and `editor.edit` routes in favor of just having an `editor` route. new/edit already share almost all of their code, and I feel like the separation between the two has caused a lot of issues as we try to refactor autosave ( #4321's attempted fixes, for example )