title: Custom Ribbon button in SharePoint 2010 showing up as disabled
body: <p>I've create a custom ribbon button that only shows up the Insert block for a blog post.  On my dev environment, it shows up fine.  When I deploy to another environment, it shows up, but is disabled.  I can't figure out how to enable it.</p>
  
  <p>Button is enabled and okay on my dev environment</p>
  
  <p><img src="https://i.stack.imgur.com/nYZsb.png" alt="alt text"></p>
  
  <p>Button is disabled on other environment, where I'm a site collection admin.</p>
  
  <p><img src="https://i.stack.imgur.com/iHVUK.png" alt="alt text"></p>
  
  <p>It states that it is likely security or you have something selected that is not in context.  I'm a site collection admin, so don't think it's security and I've selected the Rich text area, so not sure about the object context either.</p>
  
  <p>Secondary Question:  I'd ultimately like to take over the Video and Audio button, but cannot find where that is referenced in the cmdui.xml.  Where does that thing come from?</p>
  
  <p>Here is my code for the ribbon button:</p>
  
  <pre><code> &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Elements xmlns="http://schemas.microsoft.com/sharepoint/"&gt;
    &lt;CustomAction
    Id="CommandUI.Ribbon.EditingTools.BlogSiteMediaButton"
    RegistrationType="ContentType"
    RegistrationId="0x0110"
    Location="CommandUI.Ribbon"&gt;
      &lt;CommandUIExtension&gt;
        &lt;CommandUIDefinitions&gt;
          &lt;CommandUIDefinition Location="Ribbon.EditingTools.CPInsert.Media.Controls._children"&gt;
            &lt;Button
              Id="Ribbon.EditingTools.CPInsert.Media.Controls.BlogSiteMediaButton"
              ToolTipTitle="Video"
              ToolTipDescription="Insert a video onto the page."
              Sequence="15"
              Image32by32="/_layouts/images/lg_ICWMD.gif"
              Image16by16="/_layouts/images/lg_ICWMD.gif"
              Command="BlogSite_Media_Button"
              LabelText="Insert Video"
              TemplateAlias="o1" /&gt;
          &lt;/CommandUIDefinition&gt;
        &lt;/CommandUIDefinitions&gt;
        &lt;CommandUIHandlers&gt;
          &lt;CommandUIHandler
            Command="BlogSite_Media_Button"
            CommandAction="javascript:OpenInsertMediaDialog();" /&gt;
        &lt;/CommandUIHandlers&gt;
      &lt;/CommandUIExtension&gt;
    &lt;/CustomAction&gt;
    &lt;CustomAction Id="Ribbon.EditingTools.CPInsert.Actions.Scripts"
     Location ="ScriptLink"
     ScriptSrc="/_layouts/BlogSite.MediaButton/BlogSite.Ribbon.InsertMedia.js" /&gt;
  &lt;/Elements&gt;
  </code></pre>