Към съдържанието
EDITOR · COMPLETE

WysiwygEditor

WysiwygEditor е част от RayCraft Complete.

Пример

<WysiwygEditor @bind-Value="_html" DocumentId="wysiwyg-basic" Options="_options" />
<h3>Value (HTML)</h3>
<CodeBlock Language="html" Code="@(_html ?? string.Empty)" ShowCopy="false" />

@code {
    private string? _html = "<h2>Release notes</h2><p>The <b>new editor</b> keeps <i>clean HTML</i>.</p><ul><li>Tables, media and templates</li><li>Paste from Word and Excel</li></ul>";
    private readonly EditorOptions _options = new() { Placeholder = "Write here..." };
}

Кратък фрагмент. Добавете @using RayCraft.Blazor.Components към страницата си и ползвайте интерактивен режим на рендиране.

Част от RayCraft Complete.

Всички контроли ยท Документация