How to Fix Undo Disabled After OOXML Insertion in Word for the Web
Question details
Users are unable to use the undo or redo functions after inserting OOXML content via a Word add-in in the web version.

- Product
- Word for the Web
- Device & OS
- not provided
- Scenario
- Developing or using a Word web add-in to insert OOXML content into a document.
- Observed behavior
- Inserting OOXML displays a dialog and disables subsequent undo operations, clearing the undo stack. This behavior differs from the desktop version where undo works normally after OOXML insertion.
Ensure your document is saved and actively syncing to OneDrive or SharePoint so that you can rely on version history if the undo stack is cleared.
Use Alternative Insertion Methods for Simpler Edits
Preserve the undo stack by replacing OOXML insertion with text or HTML insertion methods for basic content updates.
Word for the web handles OOXML insertion differently than the desktop application. When inserting complex OOXML structures, the web application may prompt a dialog that interrupts and clears the undo stack. If your inserted content does not strictly require complex OOXML formatting, using simpler API methods can bypass this limitation.
Review the content your add-in is injecting to determine if it truly requires complex OOXML structures or if it can be simplified.
Modify your add-in source code to use the `insertHtml` or `insertText` methods instead of `insertOoxml` for simpler content insertions.
Reload your add-in in Word for the web, perform the new insertion, and press Ctrl+Z to verify that the undo functionality remains intact.

Utilize Version History for Document Recovery
Use the built-in version history feature in OneDrive or SharePoint to revert changes after an OOXML insertion disables the undo stack.
Edit Documents Seamlessly with WPS Office
If web-based add-in limitations and undo stack clears are disrupting your workflow, consider switching to WPS Office. It provides a robust, lightweight desktop environment with excellent Microsoft Word compatibility, ensuring your editing experience remains smooth without web browser restrictions.
- 1. Download and Install: Download WPS Office for free from the official website and follow the simple installation instructions.
- 2. Open Your Document: Launch WPS Writer and open your existing .docx files without losing any formatting.
- 3. Edit with Full Control: Utilize built-in desktop formatting tools and enjoy uninterrupted undo/redo functionalities.

Frequently Asked Questions
Why does inserting OOXML disable undo in Word for the web?
Word for the web handles complex OOXML structures differently than the desktop version. It often requires processing that prompts a dialog, which consequently interrupts the session and clears the standard undo stack.
Can I get the normal undo stack back after it is cleared?
No. Once the undo stack is cleared by the OOXML insertion, it cannot be restored for prior actions. You must rely on Track Changes or OneDrive/SharePoint document version history to revert previous changes.
Does this issue happen in the desktop version of Word?
No, inserting OOXML through a Word add-in in the desktop version generally preserves the undo and redo functionalities without triggering disruptive dialogs.




