rename setBlockType to setNode

This commit is contained in:
Philipp Kühn
2020-11-20 23:56:41 +01:00
parent c433428fba
commit 540b0656f3
7 changed files with 20 additions and 20 deletions

View File

@@ -78,7 +78,7 @@ const CodeBlock = Node.create({
* Set a code block
*/
setCodeBlock: (attributes?: { language: string }): Command => ({ commands }) => {
return commands.setBlockType('codeBlock', attributes)
return commands.setNode('codeBlock', attributes)
},
/**
* Toggle a code block