public/ckeditor/4.4dev/core/dom/range.js
function( toSplit ) {
			if ( !this.collapsed )
				return null;

			// Extract the contents of the block from the selection point to the end
			// of its contents.
			this.setEndAt( toSplit, CKEDITOR.POSITION_BEFORE_END );
			var documentFragment = this.extractContents();

			// Duplicate the element after it.
			var clone = toSplit.clone( false );

			// Place the extracted contents into the duplicated element.
			documentFragment.appendTo( clone );
			clone.insertAfter( toSplit );
			this.moveToPosition( toSplit, CKEDITOR.POSITION_AFTER_END );
			return clone;
		}
function( toSplit ) {
			if ( !this.collapsed )
				return null;

			// Extract the contents of the block from the selection point to the end
			// of its contents.
			this.setEndAt( toSplit, CKEDITOR.POSITION_BEFORE_END );
			var documentFragment = this.extractContents();

			// Duplicate the element after it.
			var clone = toSplit.clone( false );

			// Place the extracted contents into the duplicated element.
			documentFragment.appendTo( clone );
			clone.insertAfter( toSplit );
			this.moveToPosition( toSplit, CKEDITOR.POSITION_AFTER_END );
			return clone;
		}
function ( toSplit ) { if ( ! this . collapsed ) return null ; // Extract the contents of the block from the selection point to the end // of its contents. this . setEndAt ( toSplit , CKEDITOR . POSITION_BEFORE_END ) ; var documentFragment = this . extractContents ( ) ; // Duplicate the element after it. var clone = toSplit . clone ( false ) ; // Place the extracted contents into the duplicated element. documentFragment . appendTo ( clone ) ; clone . insertAfter ( toSplit ) ; this . moveToPosition ( toSplit , CKEDITOR . POSITION_AFTER_END ) ; return clone ; }
Branch the specified element from the collapsed range position and
place the caret between the two result branches.

**Note:** The range must be collapsed and been enclosed by this element.

@param {CKEDITOR.dom.element} element
@returns {CKEDITOR.dom.element} Root element of the new branch after the split.
Branch the specified element from the collapsed range position and place the caret between the two result branches .