import styleBody from 'ghost/mixins/style-body';
import AuthenticatedRoute from 'ghost/routes/authenticated';

var EditorRoute = AuthenticatedRoute.extend(styleBody, {
    classNames: ['editor'],
    controllerName: 'posts.post',
    model: function (params) {
        return this.store.find('post', params.post_id);
    }
});

export default EditorRoute;

@@ -254,16 +254,136 @@
 rams) %7B%0A
+        var post = this.store.getById('post', params.post_id);%0A%0A        if (post) %7B%0A            return post;%0A        %7D%0A%0A
         
@@ -402,18 +402,20 @@
 store.fi
-nd
+lter
 ('post',
@@ -415,30 +415,200 @@
 'post', 
-params.post_id
+%7B status: 'all' %7D, function (post) %7B%0A            return post.get('id') === params.post_id;%0A        %7D).then(function (records) %7B%0A            return records.get('firstObject');%0A        %7D
 );%0A    %7D

Fix Editor/:postId 404 on draft