remove updateMarkAttributes

This commit is contained in:
Philipp Kühn
2020-11-18 11:05:19 +01:00
parent 91377be21e
commit 9d99e9c9d0
7 changed files with 17 additions and 37 deletions

View File

@@ -12,7 +12,7 @@ export default (typeOrName: string | MarkType, attributes?: {}): Command => ({ s
&& !markIsActive(state, type, attributes)
if (attributes && hasMarkWithDifferentAttributes) {
return commands.updateMarkAttributes(type, attributes)
return commands.addMark(type, attributes)
}
return toggleMark(type, attributes)(state, dispatch)