mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-22 10:21:36 +03:00
ab53c29aea
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
11 lines
407 B
JavaScript
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')
|
|
];
|