From 00bce4c88083de36f073b873cbce81a60dae4f5b Mon Sep 17 00:00:00 2001 From: Vitomir Budimir Date: Tue, 18 Apr 2023 14:01:02 +0200 Subject: [PATCH] docs(walkthroughs): fix incomplete code block keyboard shortcut example (#5392) --- docs/walkthroughs/03-defining-custom-elements.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/walkthroughs/03-defining-custom-elements.md b/docs/walkthroughs/03-defining-custom-elements.md index 61093b298..8472ea5d8 100644 --- a/docs/walkthroughs/03-defining-custom-elements.md +++ b/docs/walkthroughs/03-defining-custom-elements.md @@ -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) } ) } }}