Ghost/core/client/routes/new.js
Hannah Wolfe 664048be4e Ember: correct editor layout and other niggles
no issue
- Fixes the editor view so that the layout is correct
- Remove default title
- Fixes a couple of scoping issues with notifications
2014-05-31 19:32:22 +01:00

20 lines
445 B
JavaScript

import AuthenticatedRoute from 'ghost/routes/authenticated';
import styleBody from 'ghost/mixins/style-body';
var NewRoute = AuthenticatedRoute.extend(styleBody, {
controllerName: 'posts.post',
classNames: ['editor'],
renderTemplate: function () {
this.render('editor');
},
model: function () {
return this.store.createRecord('post', {
title: ''
});
}
});
export default NewRoute;