Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
Markdown card (#333)
Browse files Browse the repository at this point in the history
Refs TryGhost/Ghost#7429
- Added mobiledoc card, this uses the mobiledoc editor from within Ghost. In the future we'll pull this out and replace it with a textarea as the preview is too small to fit in the content.
- Made the HTML editor a codemirror editor (pulled in from ghost-admin to save duplicating libraries).
- Ghost-Admin now passes the paths for the ghost-api and the image directory for tools.
- Fixed the scrolling issue.
  • Loading branch information
disordinary authored and kevinansfield committed Oct 17, 2016
1 parent 98f24da commit 4506acb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions app/routes/editor/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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: {
Expand Down
2 changes: 2 additions & 0 deletions app/templates/editor/edit.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
onFirstChange=(action "autoSaveNew")
onTeardown=(action "cancelTimers")
shouldFocusEditor=shouldFocusEditor
apiRoot=apiRoot
assetPath=assetPath
}}
</section>

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 4506acb

Please sign in to comment.