Compare versions of WPF HTML Editor Control.

Latest version: 4.3.0

Compare

What's new since your version

New features

  • Customize individual commands in the default context menu
  • NWIN-10: Built-in dark mode theme

Bug fixes

  • Hyperlink dialog Action heading ignores interface language and JSON overrides
  • Built-in hyperlink and color dialogs can exceed a constrained high-DPI monitor working area
  • Text-format clipboard retrieval can fail during brief OLE clipboard contention
  • Paste could partially overwrite protected mail-merge fields and split managed replacement history
  • WPF editor in trial mode crashed the host application at exit: the queued licence check reached the disposed WebBrowser (ObjectDisposedException)
  • Email packaging throws for a large base64 image because the data URI is processed as a local path
  • Bound Toolbar1ItemsSource and Toolbar2ItemsSource collections do not populate the native WPF toolbar
  • Cached and nested dialogs can use the wrong host owner or separate taskbar entry
  • After an action was rebound or disabled, its built-in browser shortcut still worked (for example Ctrl+B still bolded after Bold moved to Ctrl+Shift+B)
  • An opened document lost its relative stylesheet even with BaseUrl set, and Content.OpenFile threw NullReferenceException
  • Context-menu items bound to ApplicationCommands (Cut, Copy, Paste) in a replacement EditorContextMenuStrip were disabled and did nothing
  • Body-only Source round-trip changes the retained document's rendering mode
  • A search dialog opened by the host code (for example pre-filled with PreloadedSearchText) did not find or replace anything
  • Style Builder border-width captions are clipped at the default dialog size
  • HtmlElementClicked and HtmlElementMouseDown were never raised, and Ctrl+Click executed any link address including file paths
  • Empty dialog fields lack visible outlines in dark and high-contrast themes
  • Style Builder captions disappear under Windows high contrast
  • Hyperlink dialog clipped the Overwrite option at its initial width
  • YouTube dialog initially clipped the related-video option below the footer
  • Inline spelling replacement could lose the redo branch after Undo
  • In preview mode a clicked link navigates inside the editor instead of opening the default browser, and no documented hook intercepts it
  • Outlook paste loses standard table borders and cell spacing
  • Word paste joins words across inline font changes
  • Dragging WpfHtmlEditor from the Visual Studio Toolbox stalls the XAML designer ("XAML designer is busy") instead of creating the control
  • Dragging WpfHtmlEditor from the Visual Studio Toolbox never creates the control; every drop ends in the "reference has been added, restart the XAML Designer" dialog
  • HTML source view requires horizontal scrolling instead of wrapping long lines
  • Browser context menus lose native keyboard navigation and editing focus
  • ScrollBarSetting does not suppress excluded native document scrollbars
  • Dragging the outer edge of image resize handles could still shrink images on high-DPI displays
  • Dragging image resize handles could shrink or distort images on scaled displays
  • Pressing OK in Image Properties without changing anything altered the image: relative src rewritten (absolute file path or backslashes), width/height lost so the image jumped to its natural size, quoted styles and unmodelled attributes dropped

Interface changes

  • Add EditorLanguage.Custom after the fourteen existing enum values, preserving their numeric identities. Selecting Custom resolves EditorStrings.custom.json from the folder loaded with LocalizationManager.SetJsonOverrideDirectory or AutoDiscoverJsonOverrides. Custom strings are separate from all built-in culture overrides; missing keys fall back to neutral English resources and then the key. SetOverride("custom", key, value) is supported. Custom uses invariant formatting and does not add a spelling dictionary; existing explicit spelling settings remain independent. Existing applications require no migration. New custom translations should select Custom and use the dedicated custom file instead of replacing an English JSON translation. Verified with shared regression tests and actual visible WPF selection, tooltip and dialog behavior.
  • Add SourceFontFamily dependency property for source-only installed font selection, with the same ordered fallback string contract as WinForms and Avalonia. Supports binding and default reset without modifying text or history. Implementation and visual qualification in progress; not yet published.
  • Removed SpellCheckOptions.AlertComplete and SpellCheckOptions.CompleteAlertMessage from the WPF SpellCheckerOption public API and shared ISpellCheckerOption contract. Interactive spell checking now closes its review dialog automatically on success without a separate completion popup; clean and empty documents complete without opening a dialog. The routed SpellCheckCompleted event and its Canceled flag remain available for host status messages. Remove any assignments or initialization of AlertComplete and CompleteAlertMessage before recompiling. Removed the unused SpellCheck_CompleteAlert localization key from all translations and localization samples; remove any custom override of that key. Online spell-check/event documentation and localization-key references are synchronized with this behavior.