如何在Outlook中选择一个加载项使用的文本?在撰写模式下,我使用getSelectedDataAsync()API获取所选文本。在读取模式下寻找类似的。
其他选项可能是在此处引用的使用身体API: https://dev.outlook.com/reference/addins/1.1/office.context.mailbox.item.html#body使用此,将选择全身。我可以使用Regex和Hashtags,但这不是我想要的。我想知道在阅读模式下选择了哪些文本。我正在使用HTML和JS来编码此addin。
我认为您没有其他选项,然后在您获得的字符串上使用Regex和Hashtag播放:
Office.context.mailbox.item.body.getAsync
在这里看:
https://social.msdn.microsoft.com/forums/office/en-us/b51a8873-ce77-418c-bd27-e29b29b277e4e4d/itemgetemgetsectecteddataasync-is-is-is-undees-doeesnt-doesnt-doesnt-doesnt-doesnt-exist-exisisist-exisist-exisist-mapps-mapps-mapps-mapps-mabps-mabps-mapps-mapps?umuumuumuumuumcapps?umuumcapps?
此Outlook在许多方面添加了API限制...
祝你好运