blazor-devexpress-dot-blazor-dot-dxhtmleditor.md
Specifies the editor markup.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public string Markup { get; set; }
| Type | Description |
|---|---|
| String |
The editor markup.
|
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.
Note
The editor updates the Markup property value based on BindMarkupMode.
Run Demo: HTML Editor - Overview
See Also