code: function(current, position) {
  
        var x, newNode, node, firstChild;
  
        // create a new node
        newNode = current.cloneNode(true);
  
        // create new node in mirror
        if (position == 'before') {
  
          // insert element
          current.parentNode.insertBefore(newNode, current);
  
        }
  
        // re-init sortable
        hashedit.setupSortable();
  
        return newNode;
  
      }
docs: Duplicates a block and appends it to the editor