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

@@ -70,7 +70,7 @@ const Heading = Node.create({
return false
}
return commands.toggleBlockType('heading', 'paragraph', attributes)
return commands.toggleNode('heading', 'paragraph', attributes)
},
}
},