Skip to main content
All docs
V25.1
  • DxHtmlEditor.Markup Property

    Specifies the editor markup.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.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.

    Note

    The editor updates the Markup property value based on BindMarkupMode.

    Run Demo: HTML Editor - Overview

    See Also