fix command name

This commit is contained in:
Philipp Kühn
2020-11-05 22:53:22 +01:00
parent 3875c71f8e
commit 9c3d8fe142

View File

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