rename setBlockType to setNode
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user