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.

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.
| Member | Signature |
|---|---|
AutoDetectWordPaste | bool AutoDetectWordPaste { get; set; } |
AutoResizeLargeImages | bool AutoResizeLargeImages { get; set; } |
ContinueSameStyleAfterEnterKey | bool ContinueSameStyleAfterEnterKey { get; set; } |
ConvertAbsoluteUrlsToRelativeUrls | bool ConvertAbsoluteUrlsToRelativeUrls { get; set; } |
ConvertFileUrlsToLocalPaths | bool ConvertFileUrlsToLocalPaths { get; set; } |
ConvertHyperlinkTargetsToBlankBeforePreview | bool ConvertHyperlinkTargetsToBlankBeforePreview { get; set; } |
CustomDoctype | string CustomDoctype { get; set; } |
DefaultCssFileLinkNameAttribute | string DefaultCssFileLinkNameAttribute { get; set; } |
DefaultFontSizeUnit | FontSizeUnit DefaultFontSizeUnit { get; set; } |
DefaultHtmlType | HtmlContentTypes DefaultHtmlType { get; set; } |
DisableEditorRightClick | bool DisableEditorRightClick { get; set; } |
DisableLocalResourceSelection | bool DisableLocalResourceSelection { get; set; } |
DoNotShowContextMenuInPreviewMode | bool DoNotShowContextMenuInPreviewMode { get; set; } |
DoctypeOverrideOptions | DocTypes DoctypeOverrideOptions { get; set; } |
EditorLanguage | EditorLanguage EditorLanguage { get; set; } |
EnableTableCellMerge | bool EnableTableCellMerge { get; set; } |
EnterKeyResponse | EnterKeyResponses EnterKeyResponse { get; set; } |
FireHtmlElementClickEventFor | HtmlElementTypes FireHtmlElementClickEventFor { get; set; } |
FireHtmlElementMouseDownEventFor | HtmlElementTypes FireHtmlElementMouseDownEventFor { get; set; } |
FormatHtmlSource | bool FormatHtmlSource { get; set; } |
InsertSpaceOnTabKey | bool InsertSpaceOnTabKey { get; set; } |
KeepTextSelectedAfterFontChange | bool KeepTextSelectedAfterFontChange { get; set; } |
MaxPastedImageWidth | int MaxPastedImageWidth { get; set; } |
MsIePasteBehavior | bool MsIePasteBehavior { get; set; } |
OutputMetaGenerator | bool OutputMetaGenerator { get; set; } |
SacrificeOptimizationForLongHtml | bool SacrificeOptimizationForLongHtml { get; set; } |
ShowCtrlClickTooltipOnHyperlinks | bool ShowCtrlClickTooltipOnHyperlinks { get; set; } |
ShowDefaultContextMenu | bool ShowDefaultContextMenu { get; set; } |
ShowZeroBorderGuideline | bool ShowZeroBorderGuideline { get; set; } |
TabWidth | int TabWidth { get; set; } |
UpdateFooterTagNavigator | bool UpdateFooterTagNavigator { get; set; } |
UrlEncodeHyperlinkHRefs | bool UrlEncodeHyperlinkHRefs { get; set; } |
UseHtml5DocType | bool UseHtml5DocType { get; set; } |
UseInlineStyleForImageDimensions | bool UseInlineStyleForImageDimensions { get; set; } |
YouTubeVideoIFrameDefaultCss | string YouTubeVideoIFrameDefaultCss { get; set; } |
ZeroBorderTableGuidelineCss | string ZeroBorderTableGuidelineCss { get; set; } |
EditorLanguage | EditorLanguage EditorLanguage { get; set; } |
FooterTagNavigatorFontInfo | FooterTagNavigatorFontInfo FooterTagNavigatorFontInfo { get; set; } |
FooterTagNavigatorTextColor | Color FooterTagNavigatorTextColor { get; set; } |
PasteImageFromClipboardBehavior | ImageStorage PasteImageFromClipboardBehavior { get; set; } |
ToolbarIconSize | ToolbarIconSizes ToolbarIconSize { get; set; } |