Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果 Outlook 中的默认格式选择为htmlorText或Rich Text. 因此outlook add-in,我们如何使用 JavaScript 从 Outlook 设置中获取格式。
html
Text
Rich Text
outlook add-in
getTypeAsync函数用于获取选定格式为HTMLor TEXT,但对于RTF格式,您获取值HTML而不是RTF. Office.context.mailbox.item.body.getTypeAsync(function (result) { ... }
getTypeAsync
HTML
TEXT
RTF
Office.context.mailbox.item.body.getTypeAsync(function (result) { ... }