logo
search
list

Table of Content

Problem Description: Web Word Allow Undo
Quick Answer for Word Won't Complete Task
Likely Causes Behind Common Document Triggers
Recommended Solution: Restoring Word After Errors
Alternative Solutions for Broader Document Workarounds
Working with WPS Office: Using WPS While Word Is Unavailable
Prevention Tips for Avoiding Repeat Document
FAQs About Web Troubleshooting FAQ

Easily Resolve Web Word Allow Undo in Word

Posted by Algirdas Jasaitis

calendar

2026-09-17

views

868

likes

59

This guide walks you through document & file issues using Microsoft-supported steps first, with WPS only where it genuinely helps.

Problem Description: Web Word Allow Undo

Hi, I have a simple Addin: ``` ``` ```xml Office.onReady((info) => { if (info.host === Office.HostType.Word) { document.getElementById("set-content").onclick = setContent; } }); export async function setContent() { const contentType = document.querySelector('input[name="contentType"]:checked').value; const content = document.getElementById("content-input").value; if (!content.trim()) { console.log("Content is empty"); return; } await Word.run(async (context) => { // Replace body switch (contentType) { case "plain": context.document.body.insertText(content, Word.InsertLocation.replace); break; case "html": context.document.body.insertHtml(content, Word.InsertLocation.replace); break; case "ooxml": context.document.body.insertOoxml(content, Word.InsertLocation.replace); break; } await context.sync(); console.log(`${contentType.toUpperCase()} content has been set`); }); } ``` When I run this in the online version of Word, for text and html, it is easily possible to undo/redo after text got inserted. No problem. But when I use OOXML as type, the following dialog appears: ![User's image](/api/attachments/8a383cc5-ae40-42eb-a6f4-93bcf58b897f?platform=QnA) (this doesn't appear for the other types), and when that dialog is gone, the OOXML is inserted but I cannot do any undo any more. I also doubt that the OOXML itself is the issue, because what I do is: - Getting the corrent OOXML - Modify one word of the text - Put the full changed OOXML back If I do the same thing with OOXML in the desktop version, this works as expected. I can undo even if OOXML is used. Any ideas?

Screenshot of the reported issue
Screenshot of the reported issue

Quick Answer for Word Won't Complete Task

Hi **[Günther Grill | headwAI GmbH](https://learn.microsoft.com/en-us/users/na/?userid=1859b8e7-4e17-4835-9398-940dedbcfb6f)** Thank you for reaching out via the Microsoft Q&A forum and sharing your add-in scenario and the issue you encountered with undo behavior in Word Online when using `insertOoxml`.

Likely Causes Behind Common Document Triggers

  • The Microsoft account or license context may not match the purchase or device.

  • Cached credentials, outdated builds, or damaged local components can trigger document & file issues.

  • A file-specific corruption or add-in conflict can mimic a broader application failure.

Recommended Solution: Restoring Word After Errors

When to use this: Apply these steps when the symptoms match and you can access the relevant Microsoft account or administrator.

  1. I’ve been looking into the undo issue you mentioned when using `insertOoxml` in Word Online, and I think the behavior might be tied to how Word Online handles document updates compared to Word Desktop.

  2. From what I’ve seen, Word Online doesn’t fully reflect the rich editing behaviors of the desktop app.

  3. Some features available on Desktop, like certain field types or content controls, don’t behave the same way or are missing entirely in the web version.

  4. So it’s possible that this difference in platform capabilities is also why the undo stack behaves differently when inserting OOXML.

  5. Also, when I read through [Microsoft’s official documentation](https://learn.microsoft.com/en-us/office/dev/add-ins/word/create-better-add-ins-for-word-with-office-open-xml#explore-methods-for-inserting-rich-content), I noticed they list OOXML insertion last among the recommended methods for Word add-ins, with the note: ![User's image](/api/attachments/15f99ba1-b9a0-4712-a6b2-16150720b937?platform=QnA) So maybe the takeaway here is: for small edits, it’s better to stick with the standard Word JS APIs (like `insertText`, `insertHtml`) which preserve undo behavior across platforms.

  6. And only use `insertOoxml` when you really need to insert something complex, but with the understanding that undo won’t be available in Word Online.

  7. Some users seem to work around this by enabling Track Changes before inserting OOXML, so they can reject the change later.

  8. Others rely on version history in OneDrive or SharePoint to restore the document if needed.

Screenshot from the recommended fix
Screenshot from the recommended fix

Alternative Solutions for Broader Document Workarounds

  1. Retry the Microsoft-side steps after restarting the app and device.

  2. Test the same action in a private browser session or a new blank file to isolate account vs file issues.

  3. Capture exact error text and screenshots before contacting Microsoft Support or your administrator.

Working with WPS Office: Using WPS While Word Is Unavailable

WPS Office AI Copilot and smart features
WPS Office AI — write, summarize, and automate tasks with built-in Copilot.

WPS Office cannot replace Microsoft account, activation, or cloud fixes for this scenario. It remains one of the best free Microsoft Office-compatible alternatives for opening and editing local files.

  1. Download and install WPS Office from the official website.

  2. Open local Word, Excel, PowerPoint, or PDF files in the matching WPS app.

  3. Save a working copy locally while Microsoft-side issues are resolved.

  4. Return to Microsoft Office after the primary fix succeeds.

If you need a practical local workspace in the meantime, try WPS Office.

100% secure

Prevention Tips for Avoiding Repeat Document

  • Keep one primary Microsoft account for subscriptions and Office sign-in.

  • Install updates for Office and Windows before retrying failed workflows.

  • Back up important files before repair, reset, or reinstall actions.

  • Work on copies and keep version history enabled when available.

FAQs About Web Troubleshooting FAQ

Can WPS Office fix this document & file issues issue directly? Only when the WPS steps match the formatting or file task. Account, activation, and cloud issues stay on the Microsoft side.

Should I reinstall Word before trying these steps? Not first. Confirm account, license, and the exact error before reinstalling.

What should I send to Microsoft Support? The affected account email, device type, Office version, exact error text, and screenshots with personal data hidden.

Algirdas Jasaitis

15 years of office industry experience, tech lover and copywriter. Follow me for product reviews, comparisons, and recommendations for new apps and software.