OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
671 stars 95 forks source link

InsertBefore does not work in Excel Desktop while it does not in Excel Online. #4015

Open georgehatg opened 8 months ago

georgehatg commented 8 months ago

This must be very easy to reproduce:

  1. Create a manifest.xml file with a Custom Tab
  2. Add the following Tag right before end of CustomTab:
    <CustomTab>
    .......
    <InsertBefore>TabHelp</InsertBefore>
    </CustomTab>
  3. It places the Ribbon Tab correctly right before the Help Tab in Excel Online while it does not work in Excel Desktop and places the Tab at the end right after the help Tab.

It happened on Excel PC Desktop version 2312

Wenjun-Gong commented 8 months ago

Thanks for reporting the issue. We will take a look shortly. + @zhenhuangMSFT to isolate the root reason.

zhenhuangMSFT commented 8 months ago

@georgehatg thanks for reporting the issue. According to our official document, the InsertBefore element is only available in PowerPoint. See more details https://learn.microsoft.com/en-us/javascript/api/manifest/customtab?view=common-js-preview#insertbefore.

georgehatg commented 8 months ago

Hallo,

As you can see in the following Image it is supported just fine in Excel Online, so why have something that is partially supported?

image

zhenhuangMSFT commented 7 months ago

Hi @jargil, do you have an answer to the above question?