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:
@@ -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) }
|
||||
)
|
||||
}
|
||||
}}
|
||||
|
Reference in New Issue
Block a user