js/tinymce/tinymce.jquery.js
function (original, tag) {
      var nu = shallowAs(original, tag);

      Insert.before(original, nu);
      var children = Traverse.children(original);
      InsertAll.append(nu, children);
      Remove.remove(original);
      return nu;
    }
function (original, tag) {
      var nu = shallowAs(original, tag);

      Insert.before(original, nu);
      var children = Traverse.children(original);
      InsertAll.append(nu, children);
      Remove.remove(original);
      return nu;
    }
function ( original , tag ) { var nu = shallowAs ( original , tag ) ; Insert . before ( original , nu ) ; var children = Traverse . children ( original ) ; InsertAll . append ( nu , children ) ; Remove . remove ( original ) ; return nu ; }
Change the tag name, but keep all children
Change the tag name but keep all children