0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Koenig - Support /image {image url} slash menu shortcut

refs https://github.com/TryGhost/Ghost/issues/9724
- add `src` param to the `image` card for use in the slash menu
- typing `/image http://example.com/image.jpeg` then pressing <kbd>Enter</kbd> will create an image card with the src pre-set
This commit is contained in:
Kevin Ansfield 2018-08-01 14:17:09 +01:00
parent 4cf9220ef4
commit f1beff3c03

View file

@ -20,7 +20,8 @@ export const CARD_MENU = [
icon: 'koenig/image',
matches: ['image', 'img'],
type: 'card',
replaceArg: 'image'
replaceArg: 'image',
params: ['src']
},
{
label: 'Markdown',