diff --git a/docs/walkthroughs/applying-custom-formatting.md b/docs/walkthroughs/applying-custom-formatting.md index cd4d0d3cf..4b4b22ce2 100644 --- a/docs/walkthroughs/applying-custom-formatting.md +++ b/docs/walkthroughs/applying-custom-formatting.md @@ -146,11 +146,13 @@ class App extends React.Component { case 'b': { event.preventDefault() editor.toggleMark('bold') + break } case '`': { const isCode = editor.value.blocks.some(block => block.type == 'code') event.preventDefault() editor.setBlocks(isCode ? 'paragraph' : 'code') + break } default: { return next()