Back to Devexpress

DxHtmlEditor.Markup Property

blazor-devexpress-dot-blazor-dot-dxhtmleditor.md

latest1.5 KB
Original Source

DxHtmlEditor.Markup Property

Specifies the editor markup.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDescription
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.

Note

The editor updates the Markup property value based on BindMarkupMode.

Run Demo: HTML Editor - Overview

See Also

DxHtmlEditor Class

DxHtmlEditor Members

DevExpress.Blazor Namespace