Skip to content

Extras

RichTextEditor

Bit.BlazorUI.ExtrasWysiwygEditorHtmlEditor

A native WYSIWYG editor whose HTML you two-way bind with Value. Its toolbar is a flags enum of groups you can reorder and extend; every byte in and out passes an allowlist sanitizer; and markdown typing rules, a slash menu, mentions, keyboard chords, counting, localization and EditForm validation are built in. The toolbar, panels and menus follow the keyboard and ARIA patterns of their roles, and Alt+0 lists every shortcut.

Toolbar & states

Picking the toolbar groups, adding and ordering your own buttons, and the read-only and disabled editors.

Toolbar

Toolbar is a flags enum: combine groups with |, or use All (the default) or AllExtended for images, tables, colors, fonts, media, emoji, find, source view, full screen and more. StickyToolbar keeps it in view while the page scrolls past a tall editor. The toolbar is one tab stop: arrow keys move inside it, Alt+F10 jumps to it from the text and Escape goes back; the emoji picker is one tab stop too, walked with the arrow keys.

Press Alt+0 for keyboard shortcuts.

Every group

Scroll the page while this editor is in view: the toolbar stays pinned to the top.

  • Try the table, emoji and find buttons
  • Toggle full screen
Press Alt+0 for keyboard shortcuts.

Custom toolbar

ToolbarConfig.CustomItems adds your own buttons (an Id, a Label or Icon, and an OnActivate that receives the editor); IsActive gives one a pressed state read off the caret, and a throwing one is reported through OnError. ToolbarConfig.Order pulls the listed ids (BitRichTextEditorToolbarConfig.GroupIds or yours) to the front.

The inline group comes first, 'Today' inserts the date and 'Callout' toggles a quote.

Press Alt+0 for keyboard shortcuts.

Read-only & disabled

ReadOnly locks editing but keeps the text selectable and in the tab order; with ShowToolbar off and Height auto it displays stored content. Disabled dims the editor, takes it out of the tab order and refuses every edit path.

This instance is read-only.

Press Alt+0 for keyboard shortcuts.

This instance is disabled.

Press Alt+0 for keyboard shortcuts.

Feedback

Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.