Skip to main content
All docs
V24.2

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

DxHtmlEditor.Markup Property

Specifies the editor markup.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
[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:

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

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

Razor
<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