dist/hashedit.js
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;

    }
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;

    }
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 ; }
Duplicates a block and appends it to the editor
Duplicates a block and appends it to the editor