Outlook Web加载项:更改嵌入式浏览器并打开您选择的浏览器
我正在开发Outlook Web加载项.我猜想Microsoft使用的是嵌入在Outlook 2016桌面客户端中的Internet Explorer 11.是否可以将其更改为其他浏览器,例如Chrome.
I am just developing an Outlook Web Add-In. I suppose that Microsoft uses Internet Explorer 11 which is embedded in the Outlook 2016 desktop client. Is there a possibility to change this to another browser, for example Chrome.
我还使用JavaScript(window.open)打开了一个新浏览器,该浏览器又是Internet Explorer11.在这种情况下,我也想更改浏览器,例如铬合金.
I also open a new browser in JavaScript (window.open) which is again Internet Explorer 11. In this case I want to change the browser too, e.g. Chrome.
第一个问题的答案-您无法更改Outlook桌面中加载了插件的浏览器.
Answer to first question - You cannot change the browser in which the addin is loaded inside Outlook Desktop.
第二个问题的答案-如果您尝试打开在appDomains(清单中)中指定的url,则它将在IE中打开以允许通讯返回到插件.如果您只想打开不需要与该插件通讯且未在您的应用程序域中指定的任何随机网址,那么它将在默认浏览器(由用户为设备设置)中打开.
Answer to second question - If you are trying to open a url specified in your appDomains(in the manifest) then it would open in IE to allow communication back to the addin. If you are trying to open just any random url which does not need to communicate back to the addin and not specified in your app domain then it will open in the default browser (set by the user for the device).
对于要在新窗口和插件之间进行通信的情况,我们建议使用displayDialogAsync API而不是window.open.您可以在此处找到有关此文档的文档:
For the scenario where you want communication between the new window and addin we suggest using the displayDialogAsync API instead of window.open. You can find documentation about it here: https://dev.office.com/reference/add-ins/shared/officeui.displaydialogasync?product=outlook&version=v1.5