Ignore shortcuts error (#1598)

This commit is contained in:
George Berezhnoy 2021-03-15 22:41:11 +03:00 committed by GitHub
parent 166ded6afe
commit 79793906a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -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).

View file

@ -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",

View file

@ -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) {}
}
/**