Office.js内容加载项插入行为 [英] Office.js content add-in insertion behavior

查看:116
本文介绍了Office.js内容加载项插入行为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在2017年10月4日之前在Excel/PowerPoint中安装Office.js内容加载项时,它会自动将插入按钮"添加到功能区上的插入"选项卡上.如果按此按钮,则内容加载项本身将插入到当前文档中.但是,在2017年10月4日,这种行为突然发生了变化,当我现在安装内容加载项时,安装屏幕上的添加"按钮会立即将内容加载项本身插入文档中,而不会在功能区上创建其自己的按钮.

When I installed an Office.js content add-in in Excel/PowerPoint before 4 October 2017, it automatically added an "insert button" to the Insert tab on the ribbon. If I pressed this button, the content add-in itself is inserted to the current document. However on 4 October 2017 this behavior suddenly changed and when I now install a content add-in, the "Add" button on the install screen immediately inserts the content add-in itself into the document, without creating its own button on the ribbon.

我们的内容加载项清单与Visual Studio生成的原始清单几乎相同,无论是从Office Store还是本地共享文件夹安装内容加载项都没有关系.这种现象还会影响我们的较旧产品版本以及其他第三方内容加载项.

Our content add-in's manifest is almost the same as the original manifest that is generated by Visual Studio and it does not matter whether the content add-in is installed from Office Store or a local shared folder. This phenomenon also affects our older product releases as well as other third party content add-ins.

我当前的Office版本是版本1708(内部版本8431.2094),但我认为这不是与Office版本有关的问题,因为我在10月4日之前回滚到了以前的版本,但这完全没有帮助.

My current Office version is Version 1708 (Build 8431.2094), but I don't think it is an Office version-related issue as I rolled back to a previous version before 4 October, but it didn't help at all.

我知道也可以从插入"选项卡上加载项"组的我的加载项"下拉列表中选择内容加载项,但是与UX上的专用插入按钮相比,这将是UX的后退丝带.

I know that content add-ins can also be chosen from the "My Add-ins" dropdown list from Add-ins group on Insert tab, but that would be a step back in UX compared to a dedicated insert button on the ribbon.

插入内容加载项是否是预期的新行为,或者这是一个错误?开发人员可以控制此功能吗?有什么办法可以让我们的插入按钮恢复原状吗?有什么方法可以将插入内容加载项按钮"放到为任务窗格定义的自定义选项卡上?

Is it an intended new behavior of inserting content add-ins or is this a bug? Can this feature be controlled by developers? Is there any way to get our insert button back? Is there any way to put an "insert content add-in button" to a custom tab that is defined for task panes?

更新:

这是我们用于内容加载项的清单:

Here is the manifest we use for the content add-in:

<?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>

推荐答案

内容加载项的功能区按钮是一项实验性功能,我们已为部分用户临时启用了该功能.我们现在正在审查实验中的数据,并将决定将来如何改善功能区上的内容加载项的行为(我们可能会决定正式交付与实验中所交付产品类似的产品).感谢您的反馈,也很抱歉带走了您喜欢的东西!

The ribbon button for content add-ins was an experimental feature that we enabled temporarily for a subset of users. We're now reviewing the data from the experiment and will decide how to improve the behaviour of content add-ins on the ribbon in the future (we may decide to officially ship something similar to what we shipped in the experiment). Thanks for your feedback, and sorry for taking away something that you liked!

-Michael(加载项程序经理)

-Michael (program manager for add-ins)

这篇关于Office.js内容加载项插入行为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆