title: Sitecore Page Editor Issues with Move and Add Components
body: <p>I have a page with multiple components in one placeholder, different component types and also multiples of the same type. There are 3 components in a particular order on the page. It was deemed desirable to change the order. Selecting the component allows moving the component and it would appear to work correctly, until hitting Save, then it disappears. This is very similar to this SO posting from a while back <a href="https://stackoverflow.com/questions/8450099/sitecore-page-editor-change-position-actully-deleting-sublayout-added-on-an-item">here</a>. I haven't found anything indicating this bug has been fixed. For reference I am using Sitecore 7.1 (rev.140324).</p>
  
  <p>After this, an attempt to add a component of the same type to the page does not work either. After resetting the page to the initial state via presentation details it was apparent that adding a component to the placeholder was having issues to begin with. Right now the workaround is manipulating the page via presentation details, which isn't so helpful for content editors. The workaround entails entering the placeholder explicitly in the field, and nested where applicable, for all components on the page.</p>
  
  <p>The Sitecore logs are not showing anything. The browser console shows "Cannot parse command parameters" twice after moving the component. The associated javascript:</p>
  
  <pre class="lang-js prettyprint-override"><code>this.parseCommandClick = function(commandClick) {
  var msg = commandClick;
  var commandParams = null;
  var idx1 = commandClick.indexOf("(");
  var idx2 = commandClick.indexOf(")");
  if (idx1 &gt;= 0 &amp;&amp; idx2 &gt; idx1) {
    msg = commandClick.substring(0, idx1);
    try {
      commandParams = $sc.evalJSON(commandClick.substring(idx1 + 1, idx2));
    }
    catch (e) {
      console.log("Cannot parse command parameters");
    }
  }
  
  return { message: msg, params : commandParams};
  </code></pre>
  
  <p>When the presentation details are set in the standard values for the page, the placeholder is not specified for some components and not nested for others. The issue can be replicated elsewhere by removing the specific placeholder of added components then moving them and saving. This causes the component to become deleted. I'm not sure the console logs directly relate to this.</p>
  
  <p>I am trying to figure out why this could be happening.</p>