Un editor ligero para escribir mensajes: negrita, cursiva, subrayado, listas, cita, enlace y borrar formato.
Por qué ayuda
- Formato básico
- Ligero y rápido
- Cambio a texto plano
Dónde encaja
- Redactores de correo
- Comentarios
- Notas

Ejemplo
<MessageEditor @bind-Value="_html" @bind-Mode="_mode" Label="Message" Placeholder="Write your message" MinHeight="10rem" />
<h3>Safe HTML</h3>
<CodeBlock Language="html" Code="@(_html ?? string.Empty)" ShowCopy="false" />
<h3>Plain text</h3>
<CodeBlock Language="text" Code="@MessageHtml.ToPlainText(_html)" ShowCopy="false" />
@code {
private string? _html = "<p>Hello,</p><p>Please find the <b>report</b> attached. See <a href=\"https://example.com/report\">the online copy</a>.</p>";
private MessageEditorMode _mode = MessageEditorMode.Rich;
} Un breve fragmento. Añade @using RayCraft.Blazor.Components a tu página y usa un modo de renderizado interactivo.
Forma parte de RayCraft Complete.