mirror of
https://github.com/codex-team/editor.js
synced 2024-05-10 02:16:46 +02:00
Ignore shortcuts error (#1598)
This commit is contained in:
parent
166ded6afe
commit
79793906a4
|
@ -1,5 +1,9 @@
|
|||
# Changelog
|
||||
|
||||
### 2.19.3
|
||||
|
||||
- `Fix` — Ignore error raised by Shortcut module
|
||||
|
||||
### 2.19.2
|
||||
|
||||
- `New` - `toolbar.toggleBlockSettings()` API method added [#1442](https://github.com/codex-team/editor.js/issues/1421).
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@editorjs/editorjs",
|
||||
"version": "2.19.2",
|
||||
"version": "2.19.3",
|
||||
"description": "Editor.js — Native JS, based on API and Open Source",
|
||||
"main": "dist/editor.js",
|
||||
"types": "./types/index.d.ts",
|
||||
|
|
|
@ -664,7 +664,9 @@ export default class InlineToolbar extends Module<InlineToolbarNodes> {
|
|||
const shortcut = this.getToolShortcut(toolName);
|
||||
|
||||
if (shortcut) {
|
||||
this.enableShortcuts(tool, shortcut);
|
||||
try {
|
||||
this.enableShortcuts(tool, shortcut);
|
||||
} catch (e) {}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue