I'm currently trying to develop an add in for Microsoft Excel and have spent a lot of time going through https://learn.microsoft.com/en-us/javascript/api/office?view=common-js-preview to learn what is available through the API. However, I cannot figure out how to detect when a button on the top ribbon (for example the bold button) is pressed by the user. Any help would be appreciated!
Most of the available documentation gives methods for detecting custom buttons that are pressed, but not already built in buttons.