mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-21 14:41:23 +02:00
docs(walkthroughs): fix incomplete code block keyboard shortcut example (#5392)
This commit is contained in:
@@ -153,7 +153,7 @@ const App = () => {
|
|||||||
Transforms.setNodes(
|
Transforms.setNodes(
|
||||||
editor,
|
editor,
|
||||||
{ type: 'code' },
|
{ type: 'code' },
|
||||||
{ match: n => Editor.isBlock(editor, n) }
|
{ match: n => Element.isElement(n) && Editor.isBlock(editor, n) }
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
Reference in New Issue
Block a user