I'm trying to add a custom action in the Ribbon.EditingTools.CPEditTab.Markup
group. My goal is to add a button that fires a custom javascript that inject som html content in the rich editor control of a wiki site (related to my previous question).
When I try with SPD, even if I can write Ribbon.EditingTools.CPEditTab.Markup
, the custom action is not displayed.
How can I add such custom action using either SPD or Powershell ?
I've also tried with a Powershell script like this :
$site = Get-SpSite "http://server/sites/coll"
$ca = $site.UserCustomActions.Add()
$ca.Name = "test"
$ca.Title = "Test"
$ca.Location = "Ribbon.EditingTools.CPEditTab.Markup"
$ca.Url = "javascript:alert('Working')"
$ca.Update();
Please note this is a custom action used for only one site. I'd like to avoid to create a feature for this purpose.