title: Word Add-in problems when grab the text from Word
body: <p>I'am writing an Add-In for Word.
  I want to grab the Text in word and convert the text to Html.
  I used the example from the official documentation.
  <a href="https://dev.office.com/reference/add-ins/word/body" rel="nofollow noreferrer">https://dev.office.com/reference/add-ins/word/body</a></p>
  
  <p>Basicly it works, but there is a problem I can't solve.
  Everytime I grab the text from Word the program freezes for a second. (time depends on the legth of the document)
  This hiccup makes Word unusable. 
  I grab the Text in periodic intervals to make some analyzes.
  I need a way to get the text and convert it to Html in the background without freezes.</p>
  
  <pre><code>// Run a batch operation against the Word object model.
  return Word.run(function (context)
  {
      var body = context.document.body;
      var content = body.getHtml();
  
      // Synchronize the document state by executing the queued commands,
      // and return a promise to indicate task completion.
      return context.sync().then(function () {
          console.log(content.value);
          return content.value;
      });
  });
  </code></pre>