Ghost/ghost/admin/lib/koenig-editor/addon/options/cards.js
Kevin Ansfield ab53c29aea Koenig - Initial code card with MD expansion
refs https://github.com/TryGhost/Ghost/issues/9623
- `code` card that uses CodeMirror for the edit view and outputs `<pre><code>...</code></pre>` for the rendered view
- adds triple-backtick text expansion for creating code cards
2018-05-15 15:26:34 +01:00

11 lines
407 B
JavaScript

import createComponentCard from '../utils/create-component-card';
export default [
createComponentCard('hr', {hasEditMode: false, selectAfterInsert: false}),
createComponentCard('image', {hasEditMode: false}),
createComponentCard('markdown'),
createComponentCard('card-markdown'), // backwards-compat with markdown editor
createComponentCard('html'),
createComponentCard('code')
];