rename toggleNode to toggleBlockType

This commit is contained in:
Philipp Kühn
2020-09-24 22:27:17 +02:00
parent 2d0c5eb737
commit 570e67b085
8 changed files with 10 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ export default new Node()
}))
.commands(({ name }) => ({
[name]: () => ({ commands }) => {
return commands.toggleNode(name, 'paragraph')
return commands.toggleBlockType(name, 'paragraph')
},
}))
.keys(({ editor }) => ({