2018-01-30 18:18:08 +03:00
|
|
|
import createComponentCard from '../utils/create-component-card';
|
|
|
|
|
|
|
|
export default [
|
2018-04-18 12:52:49 +03:00
|
|
|
createComponentCard('hr', {hasEditMode: false, selectAfterInsert: false}),
|
|
|
|
createComponentCard('image', {hasEditMode: false}),
|
2018-02-01 14:26:24 +03:00
|
|
|
createComponentCard('markdown'),
|
2018-02-03 21:20:50 +03:00
|
|
|
createComponentCard('card-markdown'), // backwards-compat with markdown editor
|
2018-05-15 17:26:34 +03:00
|
|
|
createComponentCard('html'),
|
2018-06-07 13:34:50 +03:00
|
|
|
createComponentCard('code'),
|
|
|
|
createComponentCard('embed', {hasEditMode: false})
|
|
|
|
];
|
|
|
|
|
|
|
|
export const CARD_MENU = [
|
|
|
|
{
|
|
|
|
title: 'Basic',
|
|
|
|
items: [{
|
|
|
|
label: 'Image',
|
|
|
|
icon: 'koenig/image',
|
|
|
|
matches: ['image', 'img'],
|
|
|
|
type: 'card',
|
|
|
|
replaceArg: 'image'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Markdown',
|
|
|
|
icon: 'koenig/markdown',
|
|
|
|
matches: ['markdown', 'md'],
|
|
|
|
type: 'card',
|
|
|
|
replaceArg: 'markdown'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'HTML',
|
|
|
|
icon: 'koenig/html',
|
|
|
|
matches: ['html'],
|
|
|
|
type: 'card',
|
|
|
|
replaceArg: 'html'
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Divider',
|
|
|
|
icon: 'koenig/divider',
|
|
|
|
matches: ['divider', 'horizontal-rule', 'hr'],
|
|
|
|
type: 'card',
|
|
|
|
replaceArg: 'hr'
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
title: 'Embed',
|
|
|
|
items: [{
|
|
|
|
label: 'YouTube',
|
|
|
|
icon: 'koenig/youtube',
|
|
|
|
matches: ['youtube'],
|
|
|
|
type: 'card',
|
|
|
|
replaceArg: 'embed',
|
|
|
|
params: ['url']
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Twitter',
|
|
|
|
icon: 'koenig/twitter',
|
|
|
|
matches: ['twitter'],
|
|
|
|
type: 'card',
|
|
|
|
replaceArg: 'embed',
|
|
|
|
params: ['url']
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Facebook',
|
|
|
|
icon: 'koenig/facebook',
|
|
|
|
matches: ['facebook'],
|
|
|
|
type: 'card',
|
|
|
|
replaceArg: 'embed',
|
|
|
|
params: ['url']
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'SoundCloud',
|
|
|
|
icon: 'koenig/soundcloud',
|
|
|
|
matches: ['soundcloud'],
|
|
|
|
type: 'card',
|
|
|
|
replaceArg: 'embed',
|
|
|
|
params: ['url']
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'CodePen',
|
|
|
|
icon: 'koenig/codepen',
|
|
|
|
matches: ['codepen'],
|
|
|
|
type: 'card',
|
|
|
|
replaceArg: 'embed',
|
|
|
|
params: ['url']
|
|
|
|
},
|
|
|
|
{
|
|
|
|
label: 'Other...',
|
|
|
|
icon: 'koenig/code-block',
|
|
|
|
matches: ['embed'],
|
|
|
|
type: 'card',
|
|
|
|
replaceArg: 'embed',
|
|
|
|
params: ['url']
|
|
|
|
}]
|
|
|
|
}
|
2018-01-30 18:18:08 +03:00
|
|
|
];
|