Editor options

    Configure authoring, Source presentation, HTML export and native option adaptations through editor.Options. The native options share canonical names with the other HTML Editor editions.

    Set options for the workflow you deploy, and keep local resource or external-content permission explicit.

    Actual Avalonia Source editor with syntax colors and formatted HTML.
    Actual Avalonia Source editor with syntax colors and formatted HTML.

    Use it in your application

    WordWrap controls document wrapping; the raw Source editor has its own WordWrap property. Native Source formatting has a separate dirty-draft apply boundary.

    Host-specific unsupported option values fail explicitly. Do not assume that a Windows COM or Internet Explorer mechanism has an equivalent native Avalonia behavior simply because a shared option name exists.

    The table lists the shared property signatures and native option additions. Use the focused guides for the native behavior and defaults that matter to your integration.

    editor.Options.FormatHtmlSource = true;
    editor.Options.AutoDetectWordPaste = true;
    editor.Options.ShowZeroBorderGuideline = true;

    Members

    These signatures come from the delivered 1.0.2 assemblies and XML documentation. Cancellation tokens can be supplied to awaited operations. Follow the source-specific notes above when adapting a WPF integration.

    MemberSignature
    AutoDetectWordPastebool AutoDetectWordPaste { get; set; }
    AutoResizeLargeImagesbool AutoResizeLargeImages { get; set; }
    ContinueSameStyleAfterEnterKeybool ContinueSameStyleAfterEnterKey { get; set; }
    ConvertAbsoluteUrlsToRelativeUrlsbool ConvertAbsoluteUrlsToRelativeUrls { get; set; }
    ConvertFileUrlsToLocalPathsbool ConvertFileUrlsToLocalPaths { get; set; }
    ConvertHyperlinkTargetsToBlankBeforePreviewbool ConvertHyperlinkTargetsToBlankBeforePreview { get; set; }
    CustomDoctypestring CustomDoctype { get; set; }
    DefaultCssFileLinkNameAttributestring DefaultCssFileLinkNameAttribute { get; set; }
    DefaultFontSizeUnitFontSizeUnit DefaultFontSizeUnit { get; set; }
    DefaultHtmlTypeHtmlContentTypes DefaultHtmlType { get; set; }
    DisableEditorRightClickbool DisableEditorRightClick { get; set; }
    DisableLocalResourceSelectionbool DisableLocalResourceSelection { get; set; }
    DoNotShowContextMenuInPreviewModebool DoNotShowContextMenuInPreviewMode { get; set; }
    DoctypeOverrideOptionsDocTypes DoctypeOverrideOptions { get; set; }
    EditorLanguageEditorLanguage EditorLanguage { get; set; }
    EnableTableCellMergebool EnableTableCellMerge { get; set; }
    EnterKeyResponseEnterKeyResponses EnterKeyResponse { get; set; }
    FireHtmlElementClickEventForHtmlElementTypes FireHtmlElementClickEventFor { get; set; }
    FireHtmlElementMouseDownEventForHtmlElementTypes FireHtmlElementMouseDownEventFor { get; set; }
    FormatHtmlSourcebool FormatHtmlSource { get; set; }
    InsertSpaceOnTabKeybool InsertSpaceOnTabKey { get; set; }
    KeepTextSelectedAfterFontChangebool KeepTextSelectedAfterFontChange { get; set; }
    MaxPastedImageWidthint MaxPastedImageWidth { get; set; }
    MsIePasteBehaviorbool MsIePasteBehavior { get; set; }
    OutputMetaGeneratorbool OutputMetaGenerator { get; set; }
    SacrificeOptimizationForLongHtmlbool SacrificeOptimizationForLongHtml { get; set; }
    ShowCtrlClickTooltipOnHyperlinksbool ShowCtrlClickTooltipOnHyperlinks { get; set; }
    ShowDefaultContextMenubool ShowDefaultContextMenu { get; set; }
    ShowZeroBorderGuidelinebool ShowZeroBorderGuideline { get; set; }
    TabWidthint TabWidth { get; set; }
    UpdateFooterTagNavigatorbool UpdateFooterTagNavigator { get; set; }
    UrlEncodeHyperlinkHRefsbool UrlEncodeHyperlinkHRefs { get; set; }
    UseHtml5DocTypebool UseHtml5DocType { get; set; }
    UseInlineStyleForImageDimensionsbool UseInlineStyleForImageDimensions { get; set; }
    YouTubeVideoIFrameDefaultCssstring YouTubeVideoIFrameDefaultCss { get; set; }
    ZeroBorderTableGuidelineCssstring ZeroBorderTableGuidelineCss { get; set; }
    EditorLanguageEditorLanguage EditorLanguage { get; set; }
    FooterTagNavigatorFontInfoFooterTagNavigatorFontInfo FooterTagNavigatorFontInfo { get; set; }
    FooterTagNavigatorTextColorColor FooterTagNavigatorTextColor { get; set; }
    PasteImageFromClipboardBehaviorImageStorage PasteImageFromClipboardBehavior { get; set; }
    ToolbarIconSizeToolbarIconSizes ToolbarIconSize { get; set; }

    Continue with

    Last updated on Oct 18, 2026

    Put this into practice.

    Start with the C# Avalonia sample. Restore this edition's package and install the native browser prerequisites before running it.

    Prefer a guided look? Book a free live demo with our engineers - live on Zoom or Teams, never a chatbot.