Created
September 4, 2017 06:28
-
-
Save rajeevprasanna/72f5582852208de2d7616a9094328e70 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
item.body.setSelectedDataAsync( | |
`<div class="<div class="customerClass"><span style="color:white;display:none" class="CustomerClass">hidden Text</span></div>`, | |
{coercionType: Office.CoercionType.Html}, | |
function (asyncResult) { | |
if (asyncResult.status == Office.AsyncResultStatus.Failed) { | |
console.error('failed!!!'); | |
} else { | |
console.log('success'); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment