Skip to content
IzzyBlazor

Enter all results ↑ ↓ move Esc close

Toolbar and shortcuts

Since 0.1.0-alpha.22
Choose the tools in the toolbar. Shortcuts work for every format, shown or not.

The members for toolbar and shortcuts, and the types they use. Every member of IzzyBlazor.RichTextEditor is on the RichTextEditor API.

Properties (3)

ToolsRichTextTools = RichTextTools.DefaultAdded in 0.1.0-alpha.22

The tools in the toolbar. Defaults to RichTextTools.Default, every tool; RichTextTools.None leaves only the shortcuts.

WrapToolbarbool = trueAdded in 0.1.0-alpha.22

The toolbar wraps onto more rows (the default), filling each; false keeps it one row, and what doesn't fit moves into a "…" menu at its end.

ToolbarContentRenderFragment?Added in 0.1.0-alpha.22

Tools of your own at the end of the toolbar, such as a ToolbarButton whose OnClick calls InsertHtmlAsync.

Methods (1)

InsertHtmlAsyncAdded in 0.1.0-alpha.22
Task InsertHtmlAsync(string html)

Inserts HTML at the caret, or in place of the selection, as if typed: it's sanitized first, and Ctrl+Z undoes it. For your own tools on interactive pages; on a static page it does nothing.

Types (1)

RichTextTools

enum

The tools in a RichTextEditor's toolbar. Combine single tools with |, or start from RichTextTools.Basic or RichTextTools.Default.

RichTextTools values
ValueDescription
None

No toolbar: shortcuts only.

TextStyle

A list of text styles: normal text and five heading levels from the editor's TopHeading.

Bold

Bold (Ctrl+B).

Italic

Italic (Ctrl+I).

Underline

Underline (Ctrl+U).

Strikethrough

Strikethrough (Ctrl+Shift+X).

InlineCode

Inline code (Ctrl+E).

Link

Add, change or remove a link (Ctrl+K).

BulletedList

Bulleted list (Ctrl+Shift+8).

NumberedList

Numbered list (Ctrl+Shift+7).

Indent

Indent and outdent a list item (Ctrl+] and Ctrl+[).

HorizontalRule

A horizontal line between sections.

ClearFormatting

Removes bold, italic and the other text formats from the selection.

UndoRedo

Undo (Ctrl+Z) and redo (Ctrl+Y).

Alignment

Align a paragraph or heading to the start, center or end (Ctrl+Shift+L, E, R).

Subscript

Subscript, as in H₂O (Ctrl+=).

Superscript

Superscript, as in x² (Ctrl+Shift+=).

TextColor

Text color, from a palette of seven that read in light and dark themes.

Highlight

A highlight behind the text, from the same palette.

FontSize

Text size: six steps from Smaller to Largest that scale with the text around them, or the editor's FontSizes.

Font

A font from the editor's Fonts; shows only when it has some.

Quote

A quote: the paragraph, or the selected ones, set apart as quoted.

CodeBlock

A code block, in a monospaced font, its spaces and lines kept.

Image

An image, by its address or uploaded (the editor's ImageUploadUrl), with its description.

Table

Tables: insert one, add and delete rows and columns, a header row.

TaskList

A task list: list items with a checkbox, ticked with a click or Ctrl+Enter (Ctrl+Shift+9).

Basic

Bold, italic, links and the two lists: for short notes and comments.

Default

Every tool (the default).

Extended

Every tool in RichTextTools.Default, and alignment, subscript, superscript, text color, highlight, size and font: for pages people lay out, such as announcements and articles.

Connection lost

Rejoining the server…