RayCraftDocs
v1.0.3 raycraft.dev
On this page

MarkdownEditor

Free

Text area with a formatting toolbar and a live preview, for people who write Markdown instead of rich text. The preview uses the Markdown component, so all text is escaped and only safe links are kept. It works with EditForm like the other inputs.

Example

MarkdownEditor control

Parameters

ParameterTypeDescription
ClassstringExtra CSS classes added to the root element.
DisabledboolDisables interaction.
DisplayNamestringName used in validation messages.
HelperTextstringHint shown below the field.
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
ModeMarkdownEditorModeEdit, Split (default) or Preview. The user can change it with the toggle.
PlaceholderstringPlaceholder shown when the field is empty.
ReadOnlyboolShows the value but does not allow changes.
RowsintHeight of the text area in rows.
StylestringInline style added to the root element.
ValuestringCurrent value. Use with @bind-Value.

Events

EventTypeDescription
ValueChangedEventCallback<string>Raised when the value changes.

Package

MarkdownEditor is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.