rename updateMark and setNodeAttributes, fix #38

This commit is contained in:
Philipp Kühn
2020-11-05 21:59:04 +01:00
parent 73822bd6c9
commit 3ce0e791f6
6 changed files with 29 additions and 29 deletions

View File

@@ -39,7 +39,7 @@ const TextAlign = createExtension({
return false
}
return commands.setNodeAttributes({ textAlign: alignment })
return commands.updateNodeAttributes({ textAlign: alignment })
},
}
},