The editor has full keyboard accessibility that includes shortcuts to open and other actions with toolbar items, drop-down lists, and dialogs.
You can use the following key shortcuts when the Rich Text Editor renders with HTML
editMode.
Actions | Keyboard shortcuts |
---|---|
Toolbar focus | alt + f10 |
Insert link | ctrl + k |
Insert image | ctrl + shift + i |
Insert table | ctrl + shift + e |
Undo | ctrl + z |
Redo | ctrl + y |
Copy | ctrl + c |
Cut | ctrl + x |
Paste | ctrl + v |
Bold | ctrl + b |
Italic | ctrl + i |
Underline | ctrl + u |
Strikethrough | ctrl + shift + s |
Uppercase | ctrl + shift + u |
Lowercase | ctrl + shift + l |
Superscript | ctrl + shift + = |
Subscript | ctrl + = |
Indents | ctrl + ] |
Outdents | ctrl + [ |
HTML source | ctrl + shift + h |
Fullscreen | ctrl + shift + f |
Justify center | ctrl + e |
Justify full | ctrl + j |
Justify left | ctrl + l |
Justify right | ctrl + r |
Clear format | ctrl + shift + r |
Ordered list | ctrl + shift + o |
Unordered list | ctrl + alt + o |
You can use the following key shortcuts when the Rich Text Editor renders with Markdown
editMode.
Actions | Keyboard shortcuts |
---|---|
Toolbar focus | alt + f10 |
Insert link | ctrl + k |
Insert image | ctrl + shift + i |
Insert table | ctrl + shift + e |
Undo | ctrl + z |
Redo | ctrl + y |
Copy | ctrl + c |
Cut | ctrl + x |
Paste | ctrl + v |
Bold | ctrl + b |
Italic | ctrl + i |
Strikethrough | ctrl + shift + s |
Uppercase | ctrl + shift + u |
Lowercase | ctrl + shift + l |
Superscript | ctrl + shift + = |
Subscript | ctrl + = |
Fullscreen | ctrl + shift + f |
Ordered list | ctrl + shift + o |
Unordered list | ctrl + alt + o |
@using Syncfusion.Blazor.RichTextEditor
<SfRichTextEditor EditorMode="EditorMode.Markdown">
<p>The Rich Text Editor component is WYSIWYG ('what you see is what you get') editor that provides the best user experience to create and update the content. Users can format their content using standard toolbar commands.</p>
<p><b> Key features:</b></p>
<ul>
<li><p> Provides <b>IFRAME</b> and <b>DIV</b> modes </p></li>
<li><p> Capable of handling markdown editing.</p></li>
<li><p> Contains a modular library to load the necessary functionality on demand.</p></li>
<li><p> Provides a fully customizable toolbar.</p></li><li><p> Provides HTML view to edit the source directly for developers.</p></li>
<li><p> Supports third - party library integration.</p></li>
<li><p> Allows preview of modified content before saving it.</p></li>
</ul>
</SfRichTextEditor>
The output will be as follows.
Customize the key config for the keyboard interaction of Rich Text Editor, using the KeyConfigure
property.
In the following code block, customize the bold and italic, toolbar actions with ctrl+1
, ctrl+2
respectively.
@using Syncfusion.Blazor.RichTextEditor
<SfRichTextEditor KeyConfigure="@KeyConfig">
<p>The Rich Text Editor component is WYSIWYG ('what you see is what you get') editor that provides the best user experience to create and update the content. Users can format their content using standard toolbar commands.</p>
<p><b> Key features:</b></p>
<ul>
<li><p> Provides <b>IFRAME</b> and <b>DIV</b> modes </p></li>
<li><p> Capable of handling markdown editing.</p></li>
<li><p> Contains a modular library to load the necessary functionality on demand.</p></li>
<li><p> Provides a fully customizable toolbar.</p></li>
<li><p> Provides HTML view to edit the source directly for developers.</p></li>
<li><p> Supports third - party library integration.</p></li>
<li><p> Allows preview of modified content before saving it.</p></li>
</ul>
</SfRichTextEditor>
@code {
private ShortcutKeys KeyConfig = new ShortcutKeys()
{
Bold = "ctrl+1",
Italic = "ctrl+2"
};
}