1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-19 13:41:19 +02:00

docs(walkthroughs): fix incomplete code block keyboard shortcut example (#5392)

This commit is contained in:
Vitomir Budimir
2023-04-18 14:01:02 +02:00
committed by GitHub
parent bc945eb12c
commit 00bce4c880

View File

@@ -153,7 +153,7 @@ const App = () => {
Transforms.setNodes(
editor,
{ type: 'code' },
{ match: n => Editor.isBlock(editor, n) }
{ match: n => Element.isElement(n) && Editor.isBlock(editor, n) }
)
}
}}