title: How to tell TinyMCE UndoManager to ignore changes until explicitly notified to resume?
body: <p>Is it possible to use TinyMCE's <a href="https://www.tiny.cloud/docs/api/tinymce/tinymce.undomanager/#ignore" rel="nofollow noreferrer">UndoManager.ignore()</a> when the callback is an <em>asynchronous</em> process?</p>
  <p>What I am looking for is a way to &quot;start ignoring&quot; and a way to &quot;stop ignoring&quot;.</p>
  <p>(The background is that I have an async post-process that modifies the editor content, but I don't want those modifications to be part of the Undo/Redo stack, since they are not user-generated.)</p>
  <p>This doesn't work, because the ignore() block callback finishes promise is resolved:</p>
  <pre><code>editor.undoManager.ignore(function() {
      doAsyncProcess(editor).then(function() {
          // doesn't work
      });
  }
  </code></pre>
  <p>What I want is something like this:</p>
  <pre><code>editor.undoManager.startIgnoring();
  doAsyncProcess(editor).then(function() {
      editor.undoManager.stopIgnoring();
  });
  </code></pre>
  <p>but of course those APIs do not exist.  Is there a workaround for this?</p>