msftedit.dll Error in Windows 10 and 11: Modern Windows rich text errors

A text dialog closes when formatting or loading an RTF document, and Windows names msftedit.dll.
What this DLL does
MSFTEDIT.DLL is associated with Rich Edit controls used by some desktop applications.
Start with this check
Open a blank editor, a trusted short RTF and the original file in the same approved program. Record which step fails.
Record the exact error, when it occurred, and the full module path if available. For a crash, open View reliability history from Start and look for the matching entry. The affected app, faulting module and exception code help distinguish an app problem from a system-wide one.
Choose the repair that fits
Repair a program that alone cannot load its rich text control. If only one file fails, preserve the original and use a clean copy or supported conversion.
Start with Microsoft’s app repair options if only one supported application fails. If unrelated built-in Windows features also fail and you suspect system file corruption, use Microsoft’s DISM and System File Checker instructions. Use supported packages and avoid downloading individual DLL files.
Verify the repair
Format, save and reopen a copied sample and verify the intended text and formatting remain.
For a related check, see riched20.dll troubleshooting. Browse the DLL Errors & Fixes Library. Official reference: Microsoft’s Rich Edit documentation.