RayCraftDocs
v1.0.3 raycraft.dev
On this page

MessageEditor

Complete

A light editor for writing a message: bold, italic, underline, lists, quote, link and clear formatting, with a switch to plain text. The value is HTML limited to a small safe set of tags, so it can go straight into a mail without a page layout like the one of DocumentEditor.

Example

MessageEditor control

Parameters

ParameterTypeDescription
AllowLinksboolShows the link button and Ctrl+K (default true).
AllowPlainTextboolShows the switch between formatted and plain text (default true).
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).
MaxHeightstringHeight at which the formatted area starts to scroll.
MaxLengthintThe longest HTML kept, in characters (default 2,000,000).
MinHeightstringSmallest height of the writing area as a CSS length (default 12rem).
ModeMessageEditorModeRich (formatted) or Plain. Two-way.
PlaceholderstringPlaceholder shown when the field is empty.
ReadOnlyboolShows the value but does not allow changes.
RowsintRows of the plain text area (default 10).
StylestringInline style added to the root element.
ValuestringThe safe HTML of the message. Two-way.

Events

EventTypeDescription
ModeChangedEventCallback<MessageEditorMode>
ValueChangedEventCallback<string>Raised when the value changes.

Package

MessageEditor is part of RayCraft Complete. Package: RayCraft.Blazor.Complete. It comes from the private RayCraft feed and needs an active license. See Getting started.