From f7153cfe66dfab56bcd916f4160f89de4f528e36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Fri, 23 Oct 2020 11:41:24 +0200 Subject: [PATCH] fix bug --- packages/extension-link/index.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/packages/extension-link/index.ts b/packages/extension-link/index.ts index 9f348e307..1989289e5 100644 --- a/packages/extension-link/index.ts +++ b/packages/extension-link/index.ts @@ -58,7 +58,7 @@ const Link = createMark({ addCommands() { return { - link: (options: { href?: string, target?: string }): Command => ({ commands }) => { + link: (options: { href?: string, target?: string } = {}): Command => ({ commands }) => { if (!options.href) { return commands.removeMark('link') } @@ -68,12 +68,6 @@ const Link = createMark({ } }, - addKeyboardShortcuts() { - return { - 'Mod-i': () => this.editor.italic(), - } - }, - addPasteRules() { return [ markPasteRule(pasteRegex, this.type, (url: string) => ({ href: url })),