This is content converted from Markdown!
Here's a JSON sample:
{
"foo": "bar"
}| 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) { |
| <html> | |
| <head> | |
| <style> | |
| h1 { | |
| font-family: Calibri; | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <h1>Hello World!</h1> |