如何使用 Javascript 从加载项中的 outlook 获取默认选择的格式

How to get default selected format from outlook in add-in using Javascript

如果 outlook 中的默认格式选择为 htmlTextRich Text。所以在 outlook add-in 中我们如何使用 JavaScript.

从 outlook 设置中获取格式

getTypeAsync 函数用于获取选定的格式,如 HTMLTEXT,但对于 RTF 格式,您获取值 HTML 而不是 RTF Office.context.mailbox.item.body.getTypeAsync(function (result) { ... }