Office js Can';没有工具提示显示在Word功能区的自定义按钮中-bug?

Office js Can';没有工具提示显示在Word功能区的自定义按钮中-bug?,office-js,Office Js,Word功能区中的Wikipedia按钮有一个工具提示,提供了更多详细信息 新的Office.js清单模式包括用于工具提示和超级提示的字段,但我无法让它们显示在我简单的、一键式的功能区实验中。我只是得到按钮标签/名称作为工具提示 这感觉像一个bug…清单真的很挑剔,这一个肯定有效 在macOS Sierra上进行测试 <?xml version="1.0" encoding="utf-8"?> <OfficeApp xmlns="http://schemas.microsoft

Word功能区中的Wikipedia按钮有一个工具提示,提供了更多详细信息

新的Office.js清单模式包括用于工具提示和超级提示的字段,但我无法让它们显示在我简单的、一键式的功能区实验中。我只是得到按钮标签/名称作为工具提示

这感觉像一个bug…清单真的很挑剔,这一个肯定有效

在macOS Sierra上进行测试

<?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"
  xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides"
xsi:type="TaskPaneApp">

<Id>2c77d848-f893-4938-ad5f-5ea03d3608dc</Id>
<Version>1.0.0.0</Version>
<ProviderName>11trees</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="Q for Success LOCAL" />
<Description DefaultValue="Success begins with good questions! Q for Success helps streamline access to your institution's research resources while helping students master academic writing and other related skills." />
<IconUrl DefaultValue="https://www.11trees.com/images/annotate/Annotate-32x32-circle.png" />
<SupportUrl DefaultValue="https://www.11trees.com/live/support/" />

 <!--Icon for your add-in. Used on installation screens and the add-ins dialog -->

<AppDomains>
    <AppDomain>https://trees-3aac6.firebaseio.com</AppDomain>
    <AppDomain>https://www.firebaseapp.com</AppDomain>
    <AppDomain>https://www.googleapis.com</AppDomain>
    <AppDomain>https://www.facebook.com</AppDomain>
</AppDomains>

<Hosts>
    <Host Name="Document"/>
</Hosts>

<DefaultSettings>
  <!-- Local macOS -->
    <SourceLocation DefaultValue="http://localhost/AnnotateX/qWord/qHome.html" />

</DefaultSettings>

<Permissions>ReadWriteDocument</Permissions>
  <!--BeginAddinCommandsMode integration-->
  <VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
    <Hosts>
      <!--Each host can have a different set of commands. Cool huh!? -->
      <!-- Workbook=Excel Document=Word Presentation=PowerPoint -->
      <!-- Make sure the hosts you override match the hosts declared in the top section of the manifest -->
      <Host xsi:type="Document">
        <!-- Form factor. Currenly only DesktopFormFactor is supported. We will add TabletFormFactor and PhoneFormFactor in the future-->
        <DesktopFormFactor>

           <!--GetStarted information used on the callout that appears when installing the add-in.
            Ensure you have build 16.0.6769 or above for GetStarted section to work-->
          <GetStarted>
                        <!--Title of the Getting Started callout. resid points to a ShortString resource -->
                        <Title resid="11trees.GetStarted.Title"/>

                        <!--Description of the Getting Started callout. resid points to a LongString resource -->
                        <Description resid="11trees.GetStarted.Description"/>

                        <!--Not used right now but you need to provide a valid resource. We will add code in the future to consume this URL.
                            resid points to a Url resource -->
                        <LearnMoreUrl resid="11trees.GetStarted.LearnMoreUrl"/>
                    </GetStarted>

            <!--Function file is an html page that includes the javascript where functions for ExecuteAction will be called.
            Think of the FunctionFile as the "code behind" ExecuteFunction-->
          <FunctionFile resid="11trees.FunctionFile.Url" />

          <!--PrimaryCommandSurface==Main Office Ribbon-->
          <ExtensionPoint xsi:type="PrimaryCommandSurface">
            <!--Use OfficeTab to extend an existing Tab. Use CustomTab to create a new tab -->
            <!-- Documentation includes all the IDs currently tested to work -->
            <OfficeTab id="TabReferences">
            <!--Group. Ensure you provide a unique id. Recommendation for any IDs is to namespace using your companyname-->
            <Group id="11trees.q.Group1">
              <!--Label for your group. resid must point to a ShortString resource -->
              <Label resid="11trees.Group1.Label" />
              <!--Icons. Required sizes 16,31,80, optional 20, 24, 40, 48, 64. Strongly recommended to provide all sizes for great UX -->
              <!--Use PNG icons and remember that all URLs on the resources section must use HTTPS -->
              <Icon>
                <bt:Image size="16" resid="11trees.TaskpaneButton.Icon" />
                <bt:Image size="32" resid="11trees.TaskpaneButton.Icon" />
                <bt:Image size="80" resid="11trees.TaskpaneButton.Icon" />
              </Icon>
             <!--Control. It can be of type "Button" or "Menu" -->

               <Control xsi:type="Button" id="11trees.TaskpaneButton1">
                 <Label resid="11trees.TaskpaneButton1.Label" />
                <Tooltip resid="11trees.TaskpaneButton1.Tooltip"/>
                <Supertip>
                  <Title resid="11trees.TaskpaneButton1.Label" />
                  <Description resid="11trees.TaskpaneButton1.Supertip" />
                </Supertip>
                 <Icon>
                   <bt:Image size="16" resid="11trees.TaskpaneButton.Icon" />
                   <bt:Image size="32" resid="11trees.TaskpaneButton.Icon" />
                   <bt:Image size="80" resid="11trees.TaskpaneButton.Icon" />
                 </Icon>
                 <Action xsi:type="ShowTaskpane">
                   <TaskpaneId>11trees.qforsuccess</TaskpaneId>
                    <!--Provide a url resource id for the location that will be displayed on the task pane -->
                   <SourceLocation resid="11trees.Taskpane1.Url" />
                 </Action>
               </Control>
            </Group>
          </OfficeTab>


          </ExtensionPoint>
        </DesktopFormFactor>
      </Host>
    </Hosts>
    <Resources>
      <bt:Images>
        <bt:Image id="11trees.TaskpaneButton.Icon" DefaultValue="https://www.11trees.com/images/annotate/Annotate-128x128-circle.png" />
        <bt:Image id="11trees.FunctionButton.Icon" DefaultValue="https://www.11trees.com/images/annotate/Annotate-128x128-circle.png" />
      </bt:Images>
      <bt:Urls>

<!-- Local macOS -->
        <bt:Url id="11trees.FunctionFile.Url" DefaultValue="http://localhost/AnnotateX/AnnoWord/functionFile.html" />
        <bt:Url id="11trees.Taskpane1.Url" DefaultValue="http://localhost/AnnotateX/qWord/qHome.html" />
        <bt:Url id="11trees.Taskpane2.Url" DefaultValue="http://localhost/AnnotateX/qWord/insertComment.html" />
        <bt:Url id="11trees.Taskpane3.Url" DefaultValue="http://localhost/AnnotateX/qWord/enterComment.html" /> —>



<!-- Local Windows -->
        <!-- <bt:Url id="11trees.FunctionFile.Url" DefaultValue="http://localhost/AnnotateforWord_dev/AnnotateCode/functionFile.html" /> -->
        <!-- <bt:Url id="11trees.Taskpane1.Url" DefaultValue="http://localhost/AnnotateforWord_dev/AnnotateCode/annotateHome.html" /> -->
        <!-- <bt:Url id="11trees.Taskpane2.Url" DefaultValue="http://localhost/AnnotateforWord_dev/AnnotateCode/insertComment.html" /> -->
        <!-- <bt:Url id="11trees.Taskpane3.Url" DefaultValue="http://localhost/AnnotateforWord_dev/AnnotateCode/enterComment.html" /> -->

<!-- Staging -->

        <!-- <bt:Url id="11trees.FunctionFile.Url" DefaultValue="http://localhost/AnnotateforWord_dev/AnnotateCode/functionFile.html" />
        <bt:Url id="11trees.Taskpane1.Url" DefaultValue="https://www.11trees.com/annotate/word/beta/AnnotateCode/annotateHome.html" />
        <bt:Url id="11trees.Taskpane2.Url" DefaultValue="https://www.11trees.com/annotate/word/beta/AnnotateCode/insertComment.html" />
        <bt:Url id="11trees.Taskpane3.Url" DefaultValue="https://www.11trees.com/annotate/word/beta/AnnotateCode/enterComment.html" /> -->

<!-- Production -->
        <!-- <bt:Url id="11trees.FunctionFile.Url" DefaultValue="https://www.11trees.com/annotate/word/prod/functionFile.html" />
        <bt:Url id="11trees.Taskpane1.Url" DefaultValue="https://www.11trees.com/annotate/word/prod/annotateHome.html"/>
        <bt:Url id="11trees.Taskpane2.Url" DefaultValue="https://www.11trees.com/annotate/word/prod/insertComment.html" />
        <bt:Url id="11trees.Taskpane3.Url" DefaultValue="https://www.11trees.com/annotate/word/prod/enterComment.html" /> -->

         <!--LearnMore URL currently not used -->
        <bt:Url id="11trees.GetStarted.LearnMoreUrl" DefaultValue="https://11trees.com/live/support/">
        </bt:Url>
      </bt:Urls>
      <bt:ShortStrings>
        <bt:String id="11trees.Group1.Label" DefaultValue="Q for Success">
        </bt:String>

        <bt:String id="11trees.FunctionButton.Label" DefaultValue="Execute Function" />
        <bt:String id="11trees.TaskpaneButton1.Label" DefaultValue="Home" />
         <bt:String id="11trees.Tab1.TabLabel" DefaultValue="Q" />
         <bt:String id="11trees.GetStarted.Title" DefaultValue="Q for Success was successfully added">
          <bt:Override Locale="ja-jp" Value="JA-JP Get Started Title" />
        </bt:String>
      </bt:ShortStrings>
      <bt:LongStrings>
        <bt:String id="11trees.FunctionButton.Tooltip" DefaultValue="Click to Execute Function" />
        <bt:String id="11trees.TaskpaneButton1.Tooltip" DefaultValue="Click to show Q" />
        <bt:String id="11trees.TaskpaneButton1.Supertip" DefaultValue="Click to show Q for Success and gain quick access to your institution's research resources plus help with academic writing." />
        <bt:String id="11trees.GetStarted.Description" DefaultValue="Get going by clicking the Annotate tab on the Ribbon">
          <bt:Override Locale="ja-jp" Value="JA-JP Get Started Title" />
        </bt:String>
      </bt:LongStrings>
    </Resources>
  </VersionOverrides>

</OfficeApp>

2c77d848-f893-4938-ad5f-5ea03d3608dc
1.0.0.0
11棵树
恩美

按钮

<Control xsi:type="Button" id="11trees.TaskpaneButton1">
   <Label resid="11trees.TaskpaneButton1.Label" />
  <Tooltip resid="11trees.TaskpaneButton1.Tooltip"/>
  <Supertip>
    <Title resid="11trees.TaskpaneButton1.TipLabel" />
    <Description resid="11trees.TaskpaneButton1.Supertip" />
  </Supertip>
   <Icon>
     <bt:Image size="16" resid="11trees.TaskpaneButton.Icon" />
     <bt:Image size="32" resid="11trees.TaskpaneButton.Icon" />
     <bt:Image size="80" resid="11trees.TaskpaneButton.Icon" />
   </Icon>
   <Action xsi:type="ShowTaskpane">
     <TaskpaneId>11trees.qforsuccess</TaskpaneId>
      <!--Provide a url resource id for the location that will be displayed on the task pane -->
     <SourceLocation resid="11trees.Taskpane1.Url" />
   </Action>
</Control>
<bt:ShortStrings>
  <bt:String id="11trees.Group1.Label" DefaultValue="Q for Success">
  </bt:String>
  <bt:String id="11trees.FunctionButton.Label" DefaultValue="Execute Function" />
  <bt:String id="11trees.TaskpaneButton1.Label" DefaultValue="Home" />
  <bt:String id="11trees.TaskpaneButton1.TipLabel" DefaultValue="Open Q for Success to access research and writing resources." />
   <bt:String id="11trees.Tab1.TabLabel" DefaultValue="Q" />
   <bt:String id="11trees.GetStarted.Title" DefaultValue="Q for Success was successfully added">
    <bt:Override Locale="ja-jp" Value="JA-JP Get Started Title" />
  </bt:String>
</bt:ShortStrings>
<bt:LongStrings>
  <bt:String id="11trees.TaskpaneButton1.Supertip" DefaultValue="Click to show Q for Success and gain quick access to your institution's research resources plus help with academic writing." />
  <bt:String id="11trees.GetStarted.Description" DefaultValue="Get going by clicking the Q button in the References tab">
    <bt:Override Locale="ja-jp" Value="JA-JP Get Started Title" />
  </bt:String>
</bt:LongStrings>

11.为了成功
字符串

<Control xsi:type="Button" id="11trees.TaskpaneButton1">
   <Label resid="11trees.TaskpaneButton1.Label" />
  <Tooltip resid="11trees.TaskpaneButton1.Tooltip"/>
  <Supertip>
    <Title resid="11trees.TaskpaneButton1.TipLabel" />
    <Description resid="11trees.TaskpaneButton1.Supertip" />
  </Supertip>
   <Icon>
     <bt:Image size="16" resid="11trees.TaskpaneButton.Icon" />
     <bt:Image size="32" resid="11trees.TaskpaneButton.Icon" />
     <bt:Image size="80" resid="11trees.TaskpaneButton.Icon" />
   </Icon>
   <Action xsi:type="ShowTaskpane">
     <TaskpaneId>11trees.qforsuccess</TaskpaneId>
      <!--Provide a url resource id for the location that will be displayed on the task pane -->
     <SourceLocation resid="11trees.Taskpane1.Url" />
   </Action>
</Control>
<bt:ShortStrings>
  <bt:String id="11trees.Group1.Label" DefaultValue="Q for Success">
  </bt:String>
  <bt:String id="11trees.FunctionButton.Label" DefaultValue="Execute Function" />
  <bt:String id="11trees.TaskpaneButton1.Label" DefaultValue="Home" />
  <bt:String id="11trees.TaskpaneButton1.TipLabel" DefaultValue="Open Q for Success to access research and writing resources." />
   <bt:String id="11trees.Tab1.TabLabel" DefaultValue="Q" />
   <bt:String id="11trees.GetStarted.Title" DefaultValue="Q for Success was successfully added">
    <bt:Override Locale="ja-jp" Value="JA-JP Get Started Title" />
  </bt:String>
</bt:ShortStrings>
<bt:LongStrings>
  <bt:String id="11trees.TaskpaneButton1.Supertip" DefaultValue="Click to show Q for Success and gain quick access to your institution's research resources plus help with academic writing." />
  <bt:String id="11trees.GetStarted.Description" DefaultValue="Get going by clicking the Q button in the References tab">
    <bt:Override Locale="ja-jp" Value="JA-JP Get Started Title" />
  </bt:String>
</bt:LongStrings>

您的清单有几个问题。第一个是
不再是有效元素,工具提示被
元素替换。在清单中,您定义了这两个元素

第二个问题是没有正确定义
。看到按钮标签的原因是您已将其分配给标签资源

<Title resid="11trees.TaskpaneButton1.Label" />

感谢您的关注和详细回答。我应该指出,我添加了工具提示行,因为我没有从Supertip得到任何喜爱,并且发现了(我想是更老的)工具提示示例。也许我误解了Supertip。我希望悬停文本是我放在Supertip中的任何内容。但我得到的悬停文本是标签短码内容。所以我已经更新了标签,以显示我想要的内容,以及所需的结果。。。Supertips显示在哪里?它正在显示标签,因为您已在清单中对此进行了配置。检查你的提示标题,它设置为显示标签资源。我在原始问题中添加了我当前的XML和屏幕截图。我现在已经为用户提供了理想的结果……但我仍然缺少标签和超级提示之间的一些区别……我不认为问题在于我的提示标题有误。@Marc LaFleur,我在office word online上也有同样的问题。按钮控制supertip不工作吗?。