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

@@ -39,7 +39,7 @@ export default new Node<HeadingOptions>()
}))
.commands(({ name }) => ({
[name]: attrs => ({ commands }) => {
return commands.toggleNode(name, 'paragraph', attrs)
return commands.toggleBlockType(name, 'paragraph', attrs)
},
}))
// TODO: Keyboard Shortcuts