From 7e0c0b7a282814f1f30d11df5b38130c2b2a1aa0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20Ku=CC=88hn?= Date: Wed, 22 Apr 2020 19:01:39 +0200 Subject: [PATCH] fix a bug --- packages/core/src/utils/nodeIsActive.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/utils/nodeIsActive.ts b/packages/core/src/utils/nodeIsActive.ts index e75a15785..9f8dd83fe 100644 --- a/packages/core/src/utils/nodeIsActive.ts +++ b/packages/core/src/utils/nodeIsActive.ts @@ -11,5 +11,5 @@ export default function nodeIsActive(state: EditorState, type: NodeType, attrs = return !!node } - return node.node.hasMarkup(type, attrs) + return node.node.hasMarkup(type, { ...node.node.attrs, ...attrs }) }