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

Commit

Permalink
Removed frontend components.
Browse files Browse the repository at this point in the history
  • Loading branch information
disordinary authored and kevinansfield committed Mar 2, 2017
1 parent 416dfdb commit 64156bd
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 132 deletions.
38 changes: 0 additions & 38 deletions lib/ghost-editor/addon/cards/common.js

This file was deleted.

12 changes: 0 additions & 12 deletions lib/ghost-editor/addon/cards/html-card_html.js

This file was deleted.

12 changes: 0 additions & 12 deletions lib/ghost-editor/addon/cards/image-card_html.js

This file was deleted.

16 changes: 0 additions & 16 deletions lib/ghost-editor/addon/cards/markdown-card_html.js

This file was deleted.

3 changes: 0 additions & 3 deletions lib/ghost-editor/addon/options/default-cards.js

This file was deleted.

3 changes: 0 additions & 3 deletions lib/ghost-editor/addon/options/default-shortcuts.js

This file was deleted.

26 changes: 13 additions & 13 deletions lib/ghost-editor/addon/options/default-tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function (editor, toolbar) {
type: 'block',
toolbar: true,
onClick: (editor) => {
editor.run(postEditor => {
editor.run((postEditor) => {
postEditor.toggleSection('h1');
});
},
Expand All @@ -30,7 +30,7 @@ export default function (editor, toolbar) {
visibility: 'primary',
toolbar: true,
onClick: (editor) => {
editor.run(postEditor => {
editor.run((postEditor) => {
postEditor.toggleSection('h2');
});
},
Expand All @@ -46,7 +46,7 @@ export default function (editor, toolbar) {
type: 'block',
visibility: 'primary',
onClick: (editor) => {
editor.run(postEditor => {
editor.run((postEditor) => {
postEditor.toggleSection('h3');
});
},
Expand All @@ -61,7 +61,7 @@ export default function (editor, toolbar) {
selected: false,
type: 'block',
onClick: (editor) => {
editor.run(postEditor => {
editor.run((postEditor) => {
postEditor.toggleSection('p');
});
},
Expand All @@ -78,7 +78,7 @@ export default function (editor, toolbar) {
type: 'block',
toolbar: true,
onClick: (editor) => {
editor.run(postEditor => {
editor.run((postEditor) => {
postEditor.toggleSection('blockquote');
});
},
Expand All @@ -93,7 +93,7 @@ export default function (editor, toolbar) {
selected: false,
type: 'block',
onClick: (editor) => {
editor.run(postEditor => {
editor.run((postEditor) => {
postEditor.toggleSection('ul');
});
},
Expand All @@ -108,7 +108,7 @@ export default function (editor, toolbar) {
selected: false,
type: 'block',
onClick: (editor) => {
editor.run(postEditor => {
editor.run((postEditor) => {
postEditor.toggleSection('ol');
});
},
Expand All @@ -125,7 +125,7 @@ export default function (editor, toolbar) {
type: 'markup',
visibility: 'primary',
onClick: (editor) => {
editor.run(postEditor => {
editor.run((postEditor) => {
postEditor.toggleMarkup('strong');
});
},
Expand All @@ -142,7 +142,7 @@ export default function (editor, toolbar) {
type: 'markup',
visibility: 'primary',
onClick: (editor) => {
editor.run(postEditor => {
editor.run((postEditor) => {
postEditor.toggleMarkup('em');
});
},
Expand All @@ -158,7 +158,7 @@ export default function (editor, toolbar) {
selected: false,
type: 'markup',
onClick: (editor) => {
editor.run(postEditor => {
editor.run((postEditor) => {
postEditor.toggleMarkup('s');
});
},
Expand Down Expand Up @@ -191,7 +191,7 @@ export default function (editor, toolbar) {
icon: 'file-picture-add.svg',
visibility: 'primary',
onClick: (editor) => {
editor.run(postEditor => {
editor.run((postEditor) => {
let card = postEditor.builder.createCardSection('image-card', {pos: 'top'});
postEditor.replaceSection(editor.range.headSection, card);

Expand All @@ -209,7 +209,7 @@ export default function (editor, toolbar) {
icon: 'html-five.svg',
visibility: 'primary',
onClick: (editor) => {
editor.run(postEditor => {
editor.run((postEditor) => {
let card = postEditor.builder.createCardSection('html-card', {pos: 'top'});
postEditor.replaceSection(editor.range.headSection, card);
});
Expand All @@ -226,7 +226,7 @@ export default function (editor, toolbar) {
visibility: 'primary',
icon: 'file-code-1.svg',
onClick: (editor) => {
editor.run(postEditor => {
editor.run((postEditor) => {
let card = postEditor.builder.createCardSection('markdown-card', {pos: 'top'});
postEditor.replaceSection(editor.range.headSection, card);
});
Expand Down
36 changes: 1 addition & 35 deletions lib/ghost-editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@
var MergeTrees = require('broccoli-merge-trees');
var Funnel = require('broccoli-funnel');
var path = require('path');
var cards = require('./addon/cards/common.js');



module.exports = {
name: 'ghost-editor',
Expand All @@ -31,37 +28,6 @@ module.exports = {
});
},
included: function (app) {
// app.import('app/styles/globals.css');
app.import('vendor/mobiledoc-kit/amd/mobiledoc-kit.js');
// app.import('app/styles/ghost-editor.css');
// app.import('app/styles/ghost-toolbar.css');
// app.import('app/styles/ghost-toolbar-blockitem.css');
// app.import('app/styles/slash-menu.css');

},

// temp
htmlOptions:
{
cards: cards.html,
atoms: [{
name: 'soft-return',
type: 'html',
render: function() {
return "<br />";
}
}
]
}
/*
[
{
name: 'html-card',
type: 'html',
render: function(opts) {
return opts.payload.html;
}
}
]
*/
}
};

0 comments on commit 64156bd

Please sign in to comment.