How should range.expandTo be used in the word javascript api
问题 I have created a taskpane addin for word that runs a search and will select the text between two search results. Until a couple of days ago the following code was running successfully: function onExpandTestClick() { var textToFind = "Word", range; return Word.run(function(context) { var searchResults = context.document.body.search(textToFind, { matchWildCards: false }); context.load(searchResults, "text"); return context.sync() .then(function() { range = searchResults.items[0].getRange("End")