mirror of
https://github.com/codex-team/editor.js
synced 2024-05-23 08:42:25 +02:00
Change shortcut listener binding (#1431)
* Change shortcut listener binding * Update CHANGELOG.md Co-authored-by: Peter Savchenko <specc.dev@gmail.com>
This commit is contained in:
parent
fea4276a3c
commit
421a975fed
2
dist/editor.js
vendored
2
dist/editor.js
vendored
File diff suppressed because one or more lines are too long
|
@ -3,12 +3,14 @@
|
|||
### 2.19.1
|
||||
|
||||
- `Improvements` - The [Cypress](https://www.cypress.io) was integrated as the end-to-end testing framework
|
||||
- `Improvements` - Native `typeof`replaced with custom utils methods
|
||||
- `Improvements` - Bind shortcuts listeners on the editor wrapper instead of document (#1391)(https://github.com/codex-team/editor.js/issues/1391)
|
||||
- `Fix` - The problem with destroy() method [#1380](https://github.com/codex-team/editor.js/issues/1380).
|
||||
- `Fix` - add getter keyword to `block.mergeable` method [#1415](https://github.com/codex-team/editor.js/issues/1415).
|
||||
- `Fix` — Fix problem with entering to Editor.js by Tab key [#1393](https://github.com/codex-team/editor.js/issues/1393)
|
||||
- `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)
|
||||
- `Impovements` - Native `typeof`replaced with custom utils methods
|
||||
|
||||
|
||||
### 2.19
|
||||
|
||||
|
|
|
@ -49,7 +49,7 @@ export default class Shortcuts extends Module {
|
|||
public add(shortcut: ShortcutData): void {
|
||||
const newShortcut = new Shortcut({
|
||||
name: shortcut.name,
|
||||
on: document, // UI.nodes.redactor
|
||||
on: this.Editor.UI.nodes.redactor,
|
||||
callback: shortcut.handler,
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue