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

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