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
name: Get selected text (Compose) | |
description: Gets the selected text in the item body or subject in Compose mode. | |
host: OUTLOOK | |
api_set: {} | |
script: | |
content: | | |
$("#get-selected-data").click(getSelectedData); | |
function getSelectedData() { | |
Office.context.mailbox.item.getSelectedDataAsync(Office.CoercionType.Text, function(asyncResult) { |