replace toggleBlockType with toggleNode(
This commit is contained in:
@@ -33,7 +33,7 @@ const Paragraph = Node.create({
|
||||
* Toggle a paragraph
|
||||
*/
|
||||
setParagraph: (): Command => ({ commands }) => {
|
||||
return commands.toggleBlockType('paragraph', 'paragraph')
|
||||
return commands.toggleNode('paragraph', 'paragraph')
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user