mirror of
https://github.com/codex-team/editor.js
synced 2024-06-01 05:22:35 +02:00
[Fix] Stop jumping to block start on toolbox close (#2055)
* Stop jumping to block start when on toolbox close * Update changelog and version * Set caret on esc press * Update package.json Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
parent
8fec2e71c3
commit
c1d7744b8d
|
@ -1,5 +1,9 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
### 2.24.4
|
||||||
|
|
||||||
|
- `Fix` — Keyboard selection by word [2045](https://github.com/codex-team/editor.js/issues/2045)
|
||||||
|
|
||||||
### 2.24.3
|
### 2.24.3
|
||||||
|
|
||||||
- `Fix` — Issue with toolbox preventing text selection fixed
|
- `Fix` — Issue with toolbox preventing text selection fixed
|
||||||
|
|
|
@ -167,7 +167,6 @@ export default class Toolbar extends Module<ToolbarNodes> {
|
||||||
opened: this.toolboxInstance.opened,
|
opened: this.toolboxInstance.opened,
|
||||||
close: (): void => {
|
close: (): void => {
|
||||||
this.toolboxInstance.close();
|
this.toolboxInstance.close();
|
||||||
this.Editor.Caret.setToBlock(this.Editor.BlockManager.currentBlock);
|
|
||||||
},
|
},
|
||||||
open: (): void => {
|
open: (): void => {
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -544,6 +544,7 @@ export default class UI extends Module<UINodes> {
|
||||||
|
|
||||||
if (this.Editor.Toolbar.toolbox.opened) {
|
if (this.Editor.Toolbar.toolbox.opened) {
|
||||||
this.Editor.Toolbar.toolbox.close();
|
this.Editor.Toolbar.toolbox.close();
|
||||||
|
this.Editor.Caret.setToBlock(this.Editor.BlockManager.currentBlock);
|
||||||
} else if (this.Editor.BlockSettings.opened) {
|
} else if (this.Editor.BlockSettings.opened) {
|
||||||
this.Editor.BlockSettings.close();
|
this.Editor.BlockSettings.close();
|
||||||
} else if (this.Editor.ConversionToolbar.opened) {
|
} else if (this.Editor.ConversionToolbar.opened) {
|
||||||
|
|
Loading…
Reference in a new issue