简体   繁体   English

具有新发布的office.js API的Outlook for Mac加载项

[英]Outlook for Mac add-in with the newly released office.js API

We have an add-in for Office Apps - using the compose form on Outlook appointments in the calendar. 我们有一个Office Apps加载项-使用日历中Outlook约会的撰写表单。

Because finally the office.js add-ins support for Outlook for Mac is out as written here , I have some questions: 因为最终Mac的Office.js插件对Outlook for Mac的支持如此处所述 ,所以我有一些问题:

  • How can I debug the JS in the add-in side pane in Outlook for Mac? 如何在Outlook for Mac的外接面板中调试JS? Since the behavior is sometimes different to Outlook Web 由于该行为有时不同于Outlook Web
  • Office.context.mailbox.item.body.setAsync(newBody, { coercionType: Office.CoercionType.Html }, callback) seems to do nothing, only for Office.CoercionType.Text it seems to work Office.context.mailbox.item.body.setAsync(newBody, { coercionType: Office.CoercionType.Html }, callback)似乎什么也没做,仅对Office.CoercionType.Text起作用
  • Is it possible to open a web page in the browser instead of a modal window? 是否可以在浏览器中打开网页而不是模式窗口? Because window.open(url, target, features) opens a modal window on top of the appointment, which is again different behavior to Outlook Web Client 因为window.open(url, target, features)在约会的顶部打开了一个模式窗口,这与Outlook Web Client的行为再次不同
  • It looks like JS is much slower in Outlook for Mac 看起来JS在Mac的Outlook中慢得多

Question #1 MacOutlook uses webkit to render addin page. 问题#1 MacOutlook使用Webkit呈现加载项页面。 You can run the following command from CLI 您可以从CLI运行以下命令

defaults write NSGlobalDomain WebKitDeveloperExtras -bool true 默认值写NSGlobalDomain WebKitDeveloperExtras -bool true

Restart the outlook and invoke the Add-in. 重新启动Outlook并调用外接程序。 You will see new menu item inspect Element which will let you inspect the elements in the page. 您将看到新的菜单项inspect Element,它将使您检查页面中的元素。

Question #3: If the URL to be opened in a domain that is not listed in appmanifest, the URL will be opened in a separate browser window. 问题3:如果要在未在清单中列出的域中打开URL,则将在单独的浏览器窗口中打开URL。 The url to be opened is in the domain listed in appmainfest, you will see a popup window. 要打开的URL在appmainfest中列出的域中,您将看到一个弹出窗口。 MacOutlook uses modal window due to the limitations of webkit library currently being used. 由于当前使用的Webkit库的限制,MacOutlook使用模式窗口。

Question #2 : Can you give specific steps to reproduce the problem and share the Outlook version that you are using - We do not see this problem 问题2:您能否给出具体步骤重现此问题并共享您使用的Outlook版本-我们看不到此问题

Senthil @ Microsoft Senthil @微软

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM