Skip to content

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.

The enhanced module deliberately uses Quill 2's native rectangular table schema, so standard <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

Rich HTML is posted through the generated hidden input.

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.

Treat editor HTML as untrusted input. Sanitize it before rendering elsewhere, and sanitize untrusted input before calling DangerouslyPasteHtmlAsync.

API reference

Parameters and events

APITypePurpose
Value / ValueChanged / ValueExpressionstring?Semantic HTML binding and EditForm integration.
Delta / DeltaChangedQuillDelta?Canonical structured document binding; takes initial-content precedence.
Text / TextChangedstring?Plain-text binding.
Theme / ThemeName / DebugQuillTheme / string? / QuillDebugLevelBundled/custom themes and Quill's process-wide diagnostic level.
Placeholder / ReadOnly / Disabledstring / boolEditor state with ARIA and toolbar synchronization.
Boundsstring?CSS selector used to constrain floating UI.
Formats / CustomFormatNamesIReadOnlyListAllowed built-in and application format names.
Toolbar / ToolbarContent / ToolbarVersionoptions / RenderFragment / longGenerated preset/typed toolbar or a custom accessible toolbar.
ModulesQuillModulesOptionsHistory, clipboard, keyboard, syntax, uploader, table, and JSON-safe module options.
RegistryQuillRegistryOptions?Editor-local built-in and data-only custom Parchment formats.
AccessibleName / AriaLabelledBy / AriaDescribedBy / TabIndexstring? / int?Editable-region accessibility contract.
ElementId / EditorId / Name / Formstring?DOM identity and native form-post integration.
Css / EditorCss / ToolbarCss / StylestringTailwind-composed root, editor, and toolbar customization.
FallbackContentRenderFragment?Content visible before interactive initialization.
ReadyEventCallback<QuillEditorState>Initialization completed with the first state snapshot.
TextChange / SelectionChange / EditorChangeEventCallback<T>Typed Quill change events with source and state.
KeyboardBindingTriggered / TableChangeEventCallback<T>Typed keyboard and enhanced-table selection/structure/style notifications.
AdditionalAttributesIReadOnlyDictionary<string, object>Unmatched root attributes; managed ARIA values are forwarded to the editor.

Public methods

Method groupMembers
State and contentGetStateAsync, GetHtmlAsync, GetTextAsync, GetDeltaAsync, GetLengthAsync, SetHtmlAsync, SetTextAsync, SetDeltaAsync, UpdateDeltaAsync
EditingDeleteTextAsync, InsertTextAsync, InsertEmbedAsync, FormatAsync, FormatTextAsync, FormatLineAsync, RemoveFormatAsync, GetFormatsAsync
Selection and focusGetSelectionAsync, SetSelectionAsync, GetBoundsAsync, FocusAsync, BlurAsync, HasFocusAsync, ScrollSelectionIntoViewAsync
State and historySetEnabledAsync, IsEnabledAsync, UpdateAsync, UndoAsync, RedoAsync, ClearHistoryAsync, CutoffHistoryAsync
ClipboardConvertHtmlToDeltaAsync, DangerouslyPasteHtmlAsync
Enhanced tablesInsertTableAsync, ExecuteTableCommandAsync, GetTableStateAsync, SetTableCellBackgroundAsync, SetTableColumnWidthAsync

Supporting types

TypeImportant membersPurpose
QuillDelta / QuillDeltaOperationOperations; Insert, Delete, Retain, Attributes; From, InsertText, InsertEmbed, DeleteText, RetainTextSerializable Quill documents and change sets.
QuillEditorStateHtml, Text, Delta, Length, Selection, Formats, IsEnabled, HasFocusComplete editor snapshot returned by Ready and instance methods.
QuillRange / QuillBoundsIndex, Length; Top, Right, Bottom, Left, Width, HeightSelection ranges and editor-relative geometry.
QuillModulesOptionsHistoryEnabled, History, ClipboardEnabled, Clipboard, KeyboardEnabled, KeyboardBindings, Syntax, UploaderEnabled, Uploader, Table, EnhancedTable, NativeModulesBuilt-in modules, ShardUI enhanced tables, and the JSON-data extension boundary.
QuillTableOptions / QuillTableLabelsdefault/maximum rows and columns, insert/actions UI, resizing, keyboard navigation, minimum width, localized labelsEditor-local enhanced table behavior and accessible UI text.
QuillTableState / QuillTableChangeEventArgsIsInTable, row/column indexes and counts, width, background; Kind, StateCurrent cell state and table event payload.
QuillHistoryOptionsDelay, MaxStack, UserOnlyUndo/redo batching and retention.
QuillClipboardOptions / QuillClipboardMatcherMatchers, NativeOptions; Selector or NodeType, Action, FormatName, ValueDeclarative apply-format and plain-text clipboard matching.
QuillKeyboardBindingId, Key, modifiers, selection/format/prefix/suffix conditions, Action, FormatName, Value, Text, Length, ContinueToNextHandlerSynchronous browser-side keyboard behavior with an optional .NET notification.
QuillSyntaxOptions / QuillSyntaxLanguageInterval, Languages; Key, LabelBundled highlight.js syntax configuration.
QuillUploaderOptionsMimeTypesAccepted image upload MIME types.
QuillToolbarOptions / QuillToolbarControlGroups, AccessibleName, Minimal, Basic, Full; Button, Select, CommandGenerated toolbar presets and typed controls.
QuillToolbarGroup / Button / SelectChildContent; Format, FormatName, Command, Value or Choices, AccessibleName, Disabled, CssComposable custom-toolbar Razor primitives.
QuillRegistryOptions / QuillCustomFormatFormats, AdditionalImportPaths, CustomFormats; Name, Kind, TagName, ClassName, KeyName, WhitelistEditor-local built-in and data-only Parchment registrations.
QuillTextChangeEventArgsChange, PreviousContent, Source, StateText-change payload.
QuillSelectionChangeEventArgsRange, PreviousRange, SourceSelection-change payload.
QuillEditorChangeEventArgsKind, Source, Change, PreviousContent, Range, PreviousRange, StateCombined text/selection payload, including silent changes.
QuillKeyboardBindingEventArgs / QuillKeyboardContextId, Range, Context; Collapsed, Empty, Offset, Prefix, Suffix, FormatNotification payload after a typed keyboard action.
EnumsQuillTheme, QuillDebugLevel, QuillFormat, QuillChangeSource, QuillEditorChangeKind, QuillKeyboardAction, QuillClipboardMatcherAction, QuillCustomFormatKind, QuillToolbarCommand, QuillTableCommand, QuillTableChangeKindClosed sets for themes, sources, formats, actions, and event kinds.
An unhandled error has occurred. Reload 🗙

    Rejoining the server...

    Rejoin failed... trying again in seconds.

    Failed to rejoin.
    Please retry or reload the page.

    The session has been paused by the server.

    Failed to resume the session.
    Please reload the page.