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.

Customization

Defaults for every editor of a subtree through BitParams, styling every part of the editor, and right-to-left layouts.

Cascading parameters

BitParams with a BitRichTextEditorParams sets defaults - toolbar, localizer, policy, upload handler, color palette, sizes, styles - for every editor under it. An editor's own value wins (the second keeps its own placeholder).

0 words · 0 chars
Press Alt+0 for keyboard shortcuts.

0 words · 0 chars
Press Alt+0 for keyboard shortcuts.

Style & Class

Style and Class reach the root; Styles and Classes reach each part. The public --bit-RichTextEditor-* CSS variables restyle the editor here or app-wide from :root.

Component's Style & Class:

Press Alt+0 for keyboard shortcuts.


Styles & Classes:

Press Alt+0 for keyboard shortcuts.


CSS variables:

Restyled with the public CSS variables: no class needed.

Even the quote rule.
Press Alt+0 for keyboard shortcuts.

RTL

Dir lays the whole editor out right-to-left (the toolbar's arrow keys follow). The Direction group sets the direction of the block at the caret, so one document can mix both.

این ویرایشگر از راست به چپ چیده شده است.

And this block is left-to-right.

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.