replace toggleBlockType with toggleNode(

This commit is contained in:
Philipp Kühn
2020-11-21 00:00:57 +01:00
parent 540b0656f3
commit 8f6ae0e69e
7 changed files with 9 additions and 9 deletions

View File

@@ -33,7 +33,7 @@ const Paragraph = Node.create({
* Toggle a paragraph
*/
setParagraph: (): Command => ({ commands }) => {
return commands.toggleBlockType('paragraph', 'paragraph')
return commands.toggleNode('paragraph', 'paragraph')
},
}
},