dist/hashedit.js
function(html, current, position) {

      var x, newNode, node, firstChild;

      // create a new node
      newNode = document.createElement('div');
      newNode.innerHTML = html;

      // get new new node
      newNode = newNode.childNodes[0];

      // create new node in mirror
      if (position == 'before') {

        // insert element
        current.parentNode.insertBefore(newNode, current);

      }

      // re-init sortable
      hashedit.setupSortable();

      return newNode;

    }
function(html, current, position) {

      var x, newNode, node, firstChild;

      // create a new node
      newNode = document.createElement('div');
      newNode.innerHTML = html;

      // get new new node
      newNode = newNode.childNodes[0];

      // create new node in mirror
      if (position == 'before') {

        // insert element
        current.parentNode.insertBefore(newNode, current);

      }

      // re-init sortable
      hashedit.setupSortable();

      return newNode;

    }
function ( html , current , position ) { var x , newNode , node , firstChild ; // create a new node newNode = document . createElement ( 'div' ) ; newNode . innerHTML = html ; // get new new node newNode = newNode . childNodes [ 0 ] ; // create new node in mirror if ( position == 'before' ) { // insert element current . parentNode . insertBefore ( newNode , current ) ; } // re-init sortable hashedit . setupSortable ( ) ; return newNode ; }
Appends blocks to the editor
Appends blocks to the editor