Skip to main content
All docs
V24.1

DxHtmlEditor.Markup Property

Specifies the editor markup.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public string Markup { get; set; }

Property Value

Type Description
String

The editor markup.

Remarks

Use the Markup property to specify the HTML Editor markup:

<DxHtmlEditor Markup="Document content"
              Height="200px"
              Width="100%" />

Alternatively, you can bind the Markup property to a variable that stores the editor markup:

<DxHtmlEditor @bind-Markup="@markup"
              Height="200px"
              Width="100%" />

@code {
    string markup { get; set; } = "Document content";
}

When the Markup property value changes, the editor raises the MarkupChanged event.

Run Demo: HTML Editor - Overview

See Also