mirror of
https://github.com/codex-team/editor.js
synced 2024-06-19 14:15:19 +02:00
Scroll Window with block selection (#1457)
* Scroll Window with block selection * Update CHANGELOG.md Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
parent
51b1fdc9e0
commit
21adb61bc9
|
@ -5,6 +5,7 @@
|
|||
- `Improvements` - A generic type for Tool config added [#1516](https://github.com/codex-team/editor.js/issues/1516)
|
||||
- `Improvements` - Remove unused `force` option in `Caret.navigateNext()` and `Caret.navigatePrevious()` [#857](https://github.com/codex-team/editor.js/issues/857#issuecomment-770363438).
|
||||
- `Improvements` - Remove bundles from the repo [#1541](https://github.com/codex-team/editor.js/pull/1541).
|
||||
- `Improvements` - Document will be scrolled when blocks are selected with `SHIFT+UP` or `SHIFT+DOWN` [#1447](https://github.com/codex-team/editor.js/issues/1447)
|
||||
- `Fix` - Fix BlockManager.setCurrentBlockByChildNode() with multiple Editor.js instances [#1503](https://github.com/codex-team/editor.js/issues/1503).
|
||||
- `Fix` - Type definition of the Sanitizer config: the sanitize function now contains param definition [#1491](https://github.com/codex-team/editor.js/pull/1491).
|
||||
|
||||
|
@ -19,7 +20,6 @@
|
|||
- `Fix` - Sanitize pasted block data [#1396](https://github.com/codex-team/editor.js/issues/1396).
|
||||
- `Fix` - Unnecessary block creation after arrow navigation at last non-default block[#1414](https://github.com/codex-team/editor.js/issues/1414)
|
||||
|
||||
|
||||
### 2.19
|
||||
|
||||
- `New` - Read-only mode 🥳 [#837](https://github.com/codex-team/editor.js/issues/837)
|
||||
|
|
|
@ -98,6 +98,10 @@ export default class CrossBlockSelection extends Module {
|
|||
|
||||
/** close InlineToolbar when Blocks selected */
|
||||
this.Editor.InlineToolbar.close();
|
||||
|
||||
nextBlock.holder.scrollIntoView({
|
||||
block: 'nearest',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue