logo
search
Document Editing Problems

How to Fix Undo Disabled After OOXML Insertion in Word for the Web

Steve KSteve K Sep 29, 2026 869 views

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.

How to Fix Undo Disabled After OOXML Insertion in Word for the Web
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.
Before you start

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.

Solution 1Recommended

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.

1
Analyze Add-in Code

Review the content your add-in is injecting to determine if it truly requires complex OOXML structures or if it can be simplified.

2
Switch to insertHtml or insertText

Modify your add-in source code to use the `insertHtml` or `insertText` methods instead of `insertOoxml` for simpler content insertions.

3
Test Undo Functionality

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.

Use Alternative Insertion Methods for Simpler Edits
Method Limitation: This workaround is only applicable if the content being inserted does not rely on advanced formatting unique to OOXML.
Free Microsoft Office alternative

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. 1. Download and Install: Download WPS Office for free from the official website and follow the simple installation instructions.
  2. 2. Open Your Document: Launch WPS Writer and open your existing .docx files without losing any formatting.
  3. 3. Edit with Full Control: Utilize built-in desktop formatting tools and enjoy uninterrupted undo/redo functionalities.
Free and lightweight desktop applicationFully compatible with Microsoft Word (.docx) formatsRich formatting tools without web-based restrictionsFamiliar user interface for seamless migration
microsoft office alternative - wps office

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.