RichTextEditor

This documentation provides a comprehensive reference for the RichTextEditor component, guiding you through its configuration options.
Demos

Parameters #

Name Type Default Required Description Added Version
AdditionalAttributes Dictionary<string, object>? null Gets or sets additional attributes that will be applied to the component. 1.0.0
AllowedImageDomains IEnumerable<string>? null Gets or sets the permitted HTTPS image domains. Subdomains are also permitted. 4.0.0
AllowedImageFileTypes IEnumerable<string>? null Gets or sets the permitted image file extensions. 4.0.0
AllowedLinkDomains IEnumerable<string>? null Gets or sets the permitted HTTP(S) link domains. Subdomains are also permitted. 4.0.0
AriaLabel string Rich text editor Gets or sets the accessible label for the editor. 4.0.0
Class string? null Gets or sets the CSS class name(s) to apply to the component. 1.0.0
DebounceInterval int 300 Gets or sets the delay, in milliseconds, before editor changes are raised. 4.0.0
Disabled bool False Gets or sets whether the editor is disabled. 4.0.0
Id string? null Gets or sets the ID. If not set, a unique ID will be generated. 1.0.0
ImageUploadHandler RichTextEditorImageUploadDelegate? null Gets or sets the image upload handler. 4.0.0
MaxImageFileSize long 5242880 Gets or sets the maximum allowed image size in bytes. 4.0.0
MaxLength int? null Gets or sets the maximum plain-text character count. 4.0.0
Placeholder string? null Gets or sets the placeholder text. 4.0.0
ShowFooter bool True Gets or sets whether the editor footer is displayed. 4.0.0
Style string? null Gets or sets the CSS style string that defines the inline styles for the component. 1.0.0
ToolbarItems RichTextEditorToolbarItem[]? null Gets or sets the toolbar items. 4.0.0
Value string null Gets or sets the HTML value. 4.0.0
ValueExpression Expression<Func<string>>? null Gets or sets the expression that identifies the bound value. 4.0.0

Methods #

Name Return type Description Added Version
ClearAsync() Task Clears the editor content. 4.0.0
FocusAsync() Task Focuses the editable area. 4.0.0
OnToolbarButtonClickAsync(string toolbarElementId, RichTextEditorToolbarItem item) Task Executes a command requested by a child toolbar button. 4.0.0

Events #

Name Return Type Description Added Version
StatusChanged EventCallback<string> Fires for transient editor activity and error status. 4.0.0
ValueChanged EventCallback<RichTextEditorChange> Fires after the editor commits a content change. 4.0.0

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.