I want to add custom actions to my save or check-in buttons when a page is in edit mode.
The IDs from the buttons I want to add events:
Ribbon.WikiPageTab.EditAndCheckout.SaveEdit.Menu.SaveEdit.SaveAndStop-Menu16
Ribbon.WikiPageTab.EditAndCheckout.SaveEdit.Menu.SaveEdit.Save-Menu16
Ribbon.WikiPageTab.EditAndCheckout.SaveEdit-SelectedItem
Ribbon.WikiPageTab.EditAndCheckout.Checkout-SelectedItem
Ribbon.WikiPageTab.EditAndCheckout.Checkout.Menu.Checkout.Checkin-Menu16
ctl00_PageStateActionButton
The only button event that gets fired is the ctl00_PageStateActionButton
button.
All other ribbon buttons are not working.
Tried following code:
$('#id').on("click", function(e){});
$('body').on("click", "#id", function(e){});
$('body').delegate("#id", "click", function(e){});
Also tried the IDs with "\" and without before each "." But nothing worked.