Ghost/ghost/admin/lib/koenig-editor/addon/components
Kevin Ansfield 1dad18a06c Added language selection to code cards (#1180)
no issue

- Added a language indicator when in rendered mode and a language input when in edit mode
- Allow code card language to be set with <code>```lang</code>+<kbd>Space/Enter</kbd> expansion 
    - previously <code>\`\`\`</code> would immediately create a code card, the <kbd>Space/Enter</kbd> is now necessary for the insertion to occur
    - lang is optional <code>\`\`\`</code>+<kbd>Space/Enter</kbd> will insert a code card with no language selected
    - requires <kbd>Enter</kbd> to be pressed to finalise the expansion and insert the card
    - added hook for text expansions to skip newline creation for when they are triggered with <kbd>Enter</kbd>
- Set the code card editor's language mode based on selected language
    - set the CodeMirror mode based on the code card payload language
        - add a basic map of language short codes to their respective CodeMirror modes
    - observe `mode` property in `{{gh-cm-editor}}` so that the mode is properly set when it's changed after initial render
2019-04-30 16:46:29 +02:00
..
koenig-basic-html-input.js 🐛 Fixed drag-n-drop card reordering interfering with caption and markdown/html card text selection 2019-01-28 09:35:58 +00:00
koenig-caption-input.js Fixed linting 2019-02-24 16:07:09 +07:00
koenig-card-code.js Added language selection to code cards (#1180) 2019-04-30 16:46:29 +02:00
koenig-card-embed.js Updated to use count words/images helper from SDK (#1159) 2019-04-16 12:50:59 +05:30
koenig-card-gallery.js Updated to use count words/images helper from SDK (#1159) 2019-04-16 12:50:59 +05:30
koenig-card-hr.js Koenig - Added reading time and word count display 2018-07-20 15:53:21 +01:00
koenig-card-html.js Updated to use count words/images helper from SDK (#1159) 2019-04-16 12:50:59 +05:30
koenig-card-image.js Updated to use count words/images helper from SDK (#1159) 2019-04-16 12:50:59 +05:30
koenig-card-markdown.js Updated to use count words/images helper from SDK (#1159) 2019-04-16 12:50:59 +05:30
koenig-card.js Added language selection to code cards (#1180) 2019-04-30 16:46:29 +02:00
koenig-editor.js Added language selection to code cards (#1180) 2019-04-30 16:46:29 +02:00
koenig-link-input.js Koenig - Added rich-text support to captions 2018-08-08 13:38:41 +01:00
koenig-link-toolbar.js Koenig - Minor design refinements 2018-08-14 14:35:13 +01:00
koenig-menu-content.js Koenig - Embed card 2018-06-12 14:07:50 +01:00
koenig-plus-menu.js Koenig - Unsplash integration 2018-08-10 18:11:35 +01:00
koenig-slash-menu.js Fixed slash-menu appearing empty immediately after setting title on new post 2019-04-29 17:08:40 +02:00
koenig-toolbar.js Koenig - Added rich-text support to captions 2018-08-08 13:38:41 +01:00