diff --git a/app/routes/editor/edit.js b/app/routes/editor/edit.js index 097701bdba..c555485b9b 100644 --- a/app/routes/editor/edit.js +++ b/app/routes/editor/edit.js @@ -3,6 +3,7 @@ import AuthenticatedRoute from 'ghost-admin/routes/authenticated'; import base from 'ghost-admin/mixins/editor-base-route'; import isNumber from 'ghost-admin/utils/isNumber'; import isFinite from 'ghost-admin/utils/isFinite'; +import ghostPaths from 'ghost-admin/utils/ghost-paths'; export default AuthenticatedRoute.extend(base, { titleToken: 'Editor', @@ -57,6 +58,8 @@ export default AuthenticatedRoute.extend(base, { controller.set('cards' , []); controller.set('atoms' , []); controller.set('toolbar' , []); + controller.set('apiRoot', ghostPaths().apiRoot); + controller.set('assetPath', ghostPaths().assetRoot); }, actions: { diff --git a/app/templates/editor/edit.hbs b/app/templates/editor/edit.hbs index f46472eafa..8ab2c101a5 100644 --- a/app/templates/editor/edit.hbs +++ b/app/templates/editor/edit.hbs @@ -35,6 +35,8 @@ onFirstChange=(action "autoSaveNew") onTeardown=(action "cancelTimers") shouldFocusEditor=shouldFocusEditor + apiRoot=apiRoot + assetPath=assetPath }} diff --git a/package.json b/package.json index 7baed442db..9a1991bfe0 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "ember-wormhole": "0.4.1", "emberx-file-input": "1.1.0", "fs-extra": "0.30.0", - "ghost-editor": "0.0.10", + "ghost-editor": "0.0.11", "glob": "7.1.1", "grunt": "1.0.1", "grunt-bg-shell": "2.3.3",