【发布时间】:2017-10-13 06:39:58
【问题描述】:
当我在 2017 年 10 月 4 日之前在 Excel/PowerPoint 中安装 Office.js 内容加载项时,它会自动在功能区的“插入”选项卡中添加一个“插入按钮”。如果我按下此按钮,内容加载项本身将插入到当前文档中。然而,在 2017 年 10 月 4 日,这种行为突然发生了变化,当我现在安装内容加载项时,安装屏幕上的“添加”按钮会立即将内容加载项本身插入到文档中,而不会在功能区上创建自己的按钮。
我们的内容加载项清单与 Visual Studio 生成的原始清单几乎相同,无论是从 Office 商店还是本地共享文件夹安装内容加载项都没有关系。这种现象也会影响我们较旧的产品版本以及其他第三方内容加载项。
我当前的 Office 版本是版本 1708(内部版本 8431.2094),但我不认为这是与 Office 版本相关的问题,因为我在 10 月 4 日之前回滚到以前的版本,但它根本没有帮助。
我知道内容加载项也可以从“插入”选项卡上“加载项”组的“我的加载项”下拉列表中选择,但与丝带。
这是插入内容插件的预期新行为还是一个错误?这个功能可以由开发者控制吗?有没有办法让我们的插入按钮回来?有没有办法将“插入内容加载项按钮”放到为任务窗格定义的自定义选项卡中?
更新:
这是我们用于内容加载项的清单:
<?xml version="1.0" encoding="UTF-8"?>
<OfficeApp
xmlns="http://schemas.microsoft.com/office/appforoffice/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0"
xsi:type="ContentApp">
<Id>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</Id>
<Version>1.0.0.0</Version>
<ProviderName>Xxxxxxxxxx</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="Insert stuff" />
<Description DefaultValue="Insert stuff to current document"/>
<IconUrl DefaultValue="https://xxxxxxx/icon.png" />
<SupportUrl DefaultValue="http://xxxxxxxx" />
<AppDomains>
<AppDomain>http://localhost:12345</AppDomain>
</AppDomains>
<Hosts>
<Host Name="Presentation" />
<Host Name="Workbook" />
</Hosts>
<DefaultSettings>
<SourceLocation DefaultValue="http://localhost:12345/path/to/index.html" />
<RequestedWidth>400</RequestedWidth>
<RequestedHeight>440</RequestedHeight>
</DefaultSettings>
<Permissions>ReadWriteDocument</Permissions>
</OfficeApp>
【问题讨论】:
-
您能分享您的清单(姓名、网址和 ID 已编辑以保护无辜者)吗?
-
@Marc 我更新了清单
标签: office-js