public/ckeditor/_source/core/dom/element.js
function( newTag )
		{
			// If it's already correct exit here.
			if ( this.getName() == newTag )
				return;

			var doc = this.getDocument();

			// Create the new node.
			var newNode = new CKEDITOR.dom.element( newTag, doc );

			// Copy all attributes.
			this.copyAttributes( newNode );

			// Move children to the new node.
			this.moveChildren( newNode );

			// Replace the node.
			this.getParent() && this.$.parentNode.replaceChild( newNode.$, this.$ );
			newNode.$[ 'data-cke-expando' ] = this.$[ 'data-cke-expando' ];
			this.$ = newNode.$;
		}
function( newTag )
		{
			// If it's already correct exit here.
			if ( this.getName() == newTag )
				return;

			var doc = this.getDocument();

			// Create the new node.
			var newNode = new CKEDITOR.dom.element( newTag, doc );

			// Copy all attributes.
			this.copyAttributes( newNode );

			// Move children to the new node.
			this.moveChildren( newNode );

			// Replace the node.
			this.getParent() && this.$.parentNode.replaceChild( newNode.$, this.$ );
			newNode.$[ 'data-cke-expando' ] = this.$[ 'data-cke-expando' ];
			this.$ = newNode.$;
		}
function ( newTag ) { // If it's already correct exit here.
 if ( this . getName ( ) == newTag ) return ; var doc = this . getDocument ( ) ; // Create the new node.
 var newNode = new CKEDITOR . dom . element ( newTag , doc ) ; // Copy all attributes.
 this . copyAttributes ( newNode ) ; // Move children to the new node.
 this . moveChildren ( newNode ) ; // Replace the node.
 this . getParent ( ) && this . $ . parentNode . replaceChild ( newNode . $ , this . $ ) ; newNode . $ [ 'data-cke-expando' ] = this . $ [ 'data-cke-expando' ] ; this . $ = newNode . $ ; }
Changes the tag name of the current element.
@param {String} newTag The new tag for the element.
Changes the tag name of the current element .