Undo After Changing Document Content RRS feed

  • Question

  • Hi,

    I am trying to write an add-in for Word which manipulates text. Basically, it works like a spellchecker and makes some corrections in the document. The problem is after this manipulation, undo doesn't work. I get the content as openxml with getSelectedDataAsync, chane its content and set it as openxml with setSelectedDataAsync. Is there anyway to make this action undoable? 

    Note: The reason I'm using OOXML coercion type is that I don't want to lose formatting.

    Sunday, October 18, 2020 2:57 PM