Skip to main content
All docs
V25.1
  • DevExpress v25.1 Update — Your Feedback Matters

    Our What's New in v25.1 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

    HtmlEditorBindMarkupMode Enum

    Lists update modes for the HTML Editor’s markup.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.1.dll

    NuGet Package: DevExpress.Blazor

    #Declaration

    C#
    public enum HtmlEditorBindMarkupMode

    #Members

    Name Description
    OnLostFocus

    Updates the markup after the editor loses focus.

    OnDelayedInput

    Updates the markup with a delay after the last user change.

    #Related API Members

    The following properties accept/return HtmlEditorBindMarkupMode values:

    #Remarks

    Use the BindMarkupMode to specify how the HTML Editor updates the Markup property when it is bound to a property/field.

    #Example

    The following code snippet updates the Markup property value in 2 seconds (2,000 ms) after the last user change:

    HTML Editor - Delay Input

    Razor
    <DxHtmlEditor @bind-Markup="@Markup"
                  BindMarkupMode="HtmlEditorBindMarkupMode.OnDelayedInput"
                  InputDelay="2000"
                  Height="200px"
                  Width="100%" />
    
    <p>The result markup: @Markup</p>
    
    @code {
        string Markup { get; set; } = "";
    }
    
    See Also