MessageEditor
CompleteA 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

Parameters
| Parameter | Type | Description |
|---|---|---|
AllowLinks | bool | Shows the link button and Ctrl+K (default true). |
AllowPlainText | bool | Shows the switch between formatted and plain text (default true). |
Class | string | Extra CSS classes added to the root element. |
Disabled | bool | Disables interaction. |
DisplayName | string | Name used in validation messages. |
HelperText | string | Hint shown below the field. |
Label | string | Visible label text (charts: accessible name; IconButton: accessible name and tooltip). |
MaxHeight | string | Height at which the formatted area starts to scroll. |
MaxLength | int | The longest HTML kept, in characters (default 2,000,000). |
MinHeight | string | Smallest height of the writing area as a CSS length (default 12rem). |
Mode | MessageEditorMode | Rich (formatted) or Plain. Two-way. |
Placeholder | string | Placeholder shown when the field is empty. |
ReadOnly | bool | Shows the value but does not allow changes. |
Rows | int | Rows of the plain text area (default 10). |
Style | string | Inline style added to the root element. |
Value | string | The safe HTML of the message. Two-way. |
Events
| Event | Type | Description |
|---|---|---|
ModeChanged | EventCallback<MessageEditorMode> | |
ValueChanged | EventCallback<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.
Send feedbackVersion 1.0.3