Ghost/ghost/admin/lib/koenig-editor/addon/options
Kevin Ansfield e68ec9d1df Koenig - Keep cursor on screen when typing or moving via keyboard (#1012)
refs https://github.com/TryGhost/Ghost/issues/9505
- when cursor changes through the normal `cursorDidChange` or through certain programmatic changes we trigger a check to see if the cursor is out of the viewport and scroll it into view if necessary
- disable our scroll-into-view routine if the mouse button or shift key is down so that we don't interfere with default browser behaviour which works well in that situation
- for scroll-into-view at the bottom there are two slightly different methods
    - if the cursor is near the bottom of the document we scroll so that the bottom padding of the editor is visible
    - if the cursor is mid-document then we scroll just enough to bring the cursor into the viewport
2018-05-24 13:30:50 +01:00
..
atoms.js Koenig - Added SHIFT+ENTER line break key command 2018-01-30 10:58:28 +00:00
cards.js Koenig - Initial code card with MD expansion 2018-05-15 15:26:34 +01:00
key-commands.js Koenig - Keep cursor on screen when typing or moving via keyboard (#1012) 2018-05-24 13:30:50 +01:00
parser-plugins.js Koenig - Grab image caption from <img><figcaption> when pasting 2018-05-18 14:26:26 +01:00
text-expansions.js Koenig - Allow > expansion to convert existing text to blockquotes 2018-05-23 16:49:18 +01:00