replace toggleBlockType with toggleNode(
This commit is contained in:
@@ -70,7 +70,7 @@ const Heading = Node.create({
|
||||
return false
|
||||
}
|
||||
|
||||
return commands.toggleBlockType('heading', 'paragraph', attributes)
|
||||
return commands.toggleNode('heading', 'paragraph', attributes)
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user