mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-01 13:54:35 +03:00
1dad18a06c
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 |
||
---|---|---|
.. | ||
koenig-basic-html-input.js | ||
koenig-caption-input.js | ||
koenig-card-code.js | ||
koenig-card-embed.js | ||
koenig-card-gallery.js | ||
koenig-card-hr.js | ||
koenig-card-html.js | ||
koenig-card-image.js | ||
koenig-card-markdown.js | ||
koenig-card.js | ||
koenig-editor.js | ||
koenig-link-input.js | ||
koenig-link-toolbar.js | ||
koenig-menu-content.js | ||
koenig-plus-menu.js | ||
koenig-slash-menu.js | ||
koenig-toolbar.js |