fix a bug

This commit is contained in:
Philipp Kühn 2020-04-22 19:01:39 +02:00
parent 8aca2852ba
commit 7e0c0b7a28

View File

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