From 9c3d8fe14207110628967c2761127cca565be478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Thu, 5 Nov 2020 22:53:22 +0100 Subject: [PATCH] fix command name --- packages/core/src/commands/toggleMark.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/commands/toggleMark.ts b/packages/core/src/commands/toggleMark.ts index 2a83ea65..fc63b02b 100644 --- a/packages/core/src/commands/toggleMark.ts +++ b/packages/core/src/commands/toggleMark.ts @@ -12,7 +12,7 @@ export default (typeOrName: string | MarkType, attrs?: {}): Command => ({ state, && !markIsActive(state, type, attrs) if (attrs && hasMarkWithDifferentAttributes) { - return commands.updateMark(type, attrs) + return commands.updateMarkAttributes(type, attrs) } return toggleMark(type)(state, dispatch)