The Blazor Markdown Editor component (RadzenMarkdownEditor) edits Markdown with a toolbar and keyboard shortcuts. It defaults to a WYSIWYG Design mode - a contenteditable surface synced with the Markdown - with a Source mode to edit the raw Markdown text.
The Markdown text is the value in both modes. Design mode edits a parsed document and writes it back to Markdown after every edit; blocks you did not touch are kept exactly as written. Text typed in Design mode is inserted literally: characters with a Markdown meaning are escaped.
Provide your own toolbar by placing tools inside RadzenMarkdownEditor. Use RadzenMarkdownEditorCustomTool to add buttons that run your own commands via the Execute event, or render arbitrary content with its Template.
The Radzen MarkdownEditor supports the following tools. Place them inside RadzenMarkdownEditor to compose your own toolbar; without child content the default toolbar is used.
**bold** on the selected text.*italic* on the selected text.~~strikethrough~~ on the selected text.# to ######) or normal text.> block quotes on the selected lines.`code` on the selected text.``` code block.- ) on the selected lines.1. ) on the selected lines.- [ ] ) on the selected lines.---) on its own line.The following keys or key combinations provide a way for users to navigate and interact with Radzen Blazor MarkdownEditor component. Shortcuts work the same in Design and Source mode.
| Press this key | To do this | |
|---|---|---|
| Windows, Chrome OS | Mac | |
| Tab | Tab | Navigate to a MarkdownEditor component. |
| Ctrl + B | ⌘ + B | Toggle bold on the selected text. |
| Ctrl + I | ⌘ + I | Toggle italic on the selected text. |
| Ctrl + K | ⌘ + K | Insert a link (opens the link dialog). |
| Ctrl + Z | ⌘ + Z | Undo the last change, including toolbar actions. |
| Ctrl + Shift + Z | ⌘ + Shift + Z | Redo the last undone change. |
| Ctrl + Y | ⌘ + Y | Redo the last undone change (alternative to Ctrl+Shift+Z). |
Add RadzenMarkdownEditor and bind its Value property; it opens in a WYSIWYG Design mode - a contenteditable surface kept in sync with the Markdown - with the toolbar and keyboard shortcuts editing the content directly.
Yes. Bind the Mode property to MarkdownEditorMode.Source, or let users switch between Design and Source with the built-in mode switcher.
Declare RadzenMarkdownEditorCustomTool inside the editor and handle the Execute callback, or use its Template to render any content.
Radzen Blazor Components, © 2018-2026 Radzen.
Source Code licensed under
MIT
On this page