Ready is published only for a live editor. Removal during loading waits for instance cleanup; adding another editor keeps its own instance and callbacks.
QuillEditor
A typed, accessible Blazor rich-text editor powered by Quill 2.
Basic editor
Quill, its themes, syntax highlighter, formula renderer, and ShardUI theme bridge are bundled. Calling
AddBlazorComponents() is the only setup required. Use an interactive render mode in Blazor Web Apps.
ShardUI currently pins Quill 2.0.2 because the upstream advisory for 2.0.3 lists no patched release.
Two-way binding
Text:
Delta operations: 0
HTML: <p>Edit me and inspect all three bound representations.</p>
Initial HTML and Delta content
HTML
Delta
Read-only, placeholder, and custom height
Toolbar configuration
Minimal toolbar
Full toolbar
Custom toolbar
HTML tables
Enable Modules.EnhancedTable to load ShardUI's local table module. Tables round-trip through
HTML and Delta, and the module adds typed commands, an accessible insert dialog, Tab navigation,
Shift+F10 and right-click actions, cell backgrounds, and pointer or keyboard column resizing.
Click a table cell to inspect it, or use the toolbar to insert another table.
<table>, <tbody>, <tr>, and <td>
content remains interoperable. Row/column spans and merged cells are normalized and are not currently
part of the supported Delta contract.
Events
No events yet.
Programmatic content and state
No content retrieved yet.
Dark mode
Form validation
Multiple editor instances
Advanced configuration
The typed options cover history, clipboard matchers, keyboard bindings, syntax, uploader behavior,
local registries, allowed formats, bounds, themes, and JSON-safe native module options. Application-owned
modules or formats that require JavaScript functions can register through the isolated module's advanced
register export before the editor is initialized. Code colors can be customized with the
--quill-code-block-* and --quill-inline-code-* CSS variables.
DangerouslyPasteHtmlAsync.
API reference
Parameters and events
| API | Type | Purpose |
|---|---|---|
| Value / ValueChanged / ValueExpression | string? | Semantic HTML binding and EditForm integration. |
| Delta / DeltaChanged | QuillDelta? | Canonical structured document binding; takes initial-content precedence. |
| Text / TextChanged | string? | Plain-text binding. |
| Theme / ThemeName / Debug | QuillTheme / string? / QuillDebugLevel | Bundled/custom themes and Quill's process-wide diagnostic level. |
| Placeholder / ReadOnly / Disabled | string / bool | Editor state with ARIA and toolbar synchronization. |
| Bounds | string? | CSS selector used to constrain floating UI. |
| Formats / CustomFormatNames | IReadOnlyList | Allowed built-in and application format names. |
| Toolbar / ToolbarContent / ToolbarVersion | options / RenderFragment / long | Generated preset/typed toolbar or a custom accessible toolbar. |
| Modules | QuillModulesOptions | History, clipboard, keyboard, syntax, uploader, table, and JSON-safe module options. |
| Registry | QuillRegistryOptions? | Editor-local built-in and data-only custom Parchment formats. |
| AccessibleName / AriaLabelledBy / AriaDescribedBy / TabIndex | string? / int? | Editable-region accessibility contract. |
| ElementId / EditorId / Name / Form | string? | DOM identity and native form-post integration. |
| Css / EditorCss / ToolbarCss / Style | string | Tailwind-composed root, editor, and toolbar customization. |
| FallbackContent | RenderFragment? | Content visible before interactive initialization. |
| Ready | EventCallback<QuillEditorState> | Initialization completed with the first state snapshot. |
| TextChange / SelectionChange / EditorChange | EventCallback<T> | Typed Quill change events with source and state. |
| KeyboardBindingTriggered / TableChange | EventCallback<T> | Typed keyboard and enhanced-table selection/structure/style notifications. |
| AdditionalAttributes | IReadOnlyDictionary<string, object> | Unmatched root attributes; managed ARIA values are forwarded to the editor. |
Public methods
| Method group | Members |
|---|---|
| State and content | GetStateAsync, GetHtmlAsync, GetTextAsync, GetDeltaAsync, GetLengthAsync, SetHtmlAsync, SetTextAsync, SetDeltaAsync, UpdateDeltaAsync |
| Editing | DeleteTextAsync, InsertTextAsync, InsertEmbedAsync, FormatAsync, FormatTextAsync, FormatLineAsync, RemoveFormatAsync, GetFormatsAsync |
| Selection and focus | GetSelectionAsync, SetSelectionAsync, GetBoundsAsync, FocusAsync, BlurAsync, HasFocusAsync, ScrollSelectionIntoViewAsync |
| State and history | SetEnabledAsync, IsEnabledAsync, UpdateAsync, UndoAsync, RedoAsync, ClearHistoryAsync, CutoffHistoryAsync |
| Clipboard | ConvertHtmlToDeltaAsync, DangerouslyPasteHtmlAsync |
| Enhanced tables | InsertTableAsync, ExecuteTableCommandAsync, GetTableStateAsync, SetTableCellBackgroundAsync, SetTableColumnWidthAsync |
Supporting types
| Type | Important members | Purpose |
|---|---|---|
| QuillDelta / QuillDeltaOperation | Operations; Insert, Delete, Retain, Attributes; From, InsertText, InsertEmbed, DeleteText, RetainText | Serializable Quill documents and change sets. |
| QuillEditorState | Html, Text, Delta, Length, Selection, Formats, IsEnabled, HasFocus | Complete editor snapshot returned by Ready and instance methods. |
| QuillRange / QuillBounds | Index, Length; Top, Right, Bottom, Left, Width, Height | Selection ranges and editor-relative geometry. |
| QuillModulesOptions | HistoryEnabled, History, ClipboardEnabled, Clipboard, KeyboardEnabled, KeyboardBindings, Syntax, UploaderEnabled, Uploader, Table, EnhancedTable, NativeModules | Built-in modules, ShardUI enhanced tables, and the JSON-data extension boundary. |
| QuillTableOptions / QuillTableLabels | default/maximum rows and columns, insert/actions UI, resizing, keyboard navigation, minimum width, localized labels | Editor-local enhanced table behavior and accessible UI text. |
| QuillTableState / QuillTableChangeEventArgs | IsInTable, row/column indexes and counts, width, background; Kind, State | Current cell state and table event payload. |
| QuillHistoryOptions | Delay, MaxStack, UserOnly | Undo/redo batching and retention. |
| QuillClipboardOptions / QuillClipboardMatcher | Matchers, NativeOptions; Selector or NodeType, Action, FormatName, Value | Declarative apply-format and plain-text clipboard matching. |
| QuillKeyboardBinding | Id, Key, modifiers, selection/format/prefix/suffix conditions, Action, FormatName, Value, Text, Length, ContinueToNextHandler | Synchronous browser-side keyboard behavior with an optional .NET notification. |
| QuillSyntaxOptions / QuillSyntaxLanguage | Interval, Languages; Key, Label | Bundled highlight.js syntax configuration. |
| QuillUploaderOptions | MimeTypes | Accepted image upload MIME types. |
| QuillToolbarOptions / QuillToolbarControl | Groups, AccessibleName, Minimal, Basic, Full; Button, Select, Command | Generated toolbar presets and typed controls. |
| QuillToolbarGroup / Button / Select | ChildContent; Format, FormatName, Command, Value or Choices, AccessibleName, Disabled, Css | Composable custom-toolbar Razor primitives. |
| QuillRegistryOptions / QuillCustomFormat | Formats, AdditionalImportPaths, CustomFormats; Name, Kind, TagName, ClassName, KeyName, Whitelist | Editor-local built-in and data-only Parchment registrations. |
| QuillTextChangeEventArgs | Change, PreviousContent, Source, State | Text-change payload. |
| QuillSelectionChangeEventArgs | Range, PreviousRange, Source | Selection-change payload. |
| QuillEditorChangeEventArgs | Kind, Source, Change, PreviousContent, Range, PreviousRange, State | Combined text/selection payload, including silent changes. |
| QuillKeyboardBindingEventArgs / QuillKeyboardContext | Id, Range, Context; Collapsed, Empty, Offset, Prefix, Suffix, Format | Notification payload after a typed keyboard action. |
| Enums | QuillTheme, QuillDebugLevel, QuillFormat, QuillChangeSource, QuillEditorChangeKind, QuillKeyboardAction, QuillClipboardMatcherAction, QuillCustomFormatKind, QuillToolbarCommand, QuillTableCommand, QuillTableChangeKind | Closed sets for themes, sources, formats, actions, and event kinds. |