public/ckeditor/4.4dev/core/dom/range.js
function( node ) {
			this.optimizeBookmark();
			this.trim( false, true );

			var startContainer = this.startContainer;
			var startOffset = this.startOffset;

			var nextNode = startContainer.getChild( startOffset );

			if ( nextNode )
				node.insertBefore( nextNode );
			else
				startContainer.append( node );

			// Check if we need to update the end boundary.
			if ( node.getParent() && node.getParent().equals( this.endContainer ) )
				this.endOffset++;

			// Expand the range to embrace the new node.
			this.setStartBefore( node );
		}
function( node ) {
			this.optimizeBookmark();
			this.trim( false, true );

			var startContainer = this.startContainer;
			var startOffset = this.startOffset;

			var nextNode = startContainer.getChild( startOffset );

			if ( nextNode )
				node.insertBefore( nextNode );
			else
				startContainer.append( node );

			// Check if we need to update the end boundary.
			if ( node.getParent() && node.getParent().equals( this.endContainer ) )
				this.endOffset++;

			// Expand the range to embrace the new node.
			this.setStartBefore( node );
		}
function ( node ) { this . optimizeBookmark ( ) ; this . trim ( false , true ) ; var startContainer = this . startContainer ; var startOffset = this . startOffset ; var nextNode = startContainer . getChild ( startOffset ) ; if ( nextNode ) node . insertBefore ( nextNode ) ; else startContainer . append ( node ) ; // Check if we need to update the end boundary. if ( node . getParent ( ) && node . getParent ( ) . equals ( this . endContainer ) ) this . endOffset ++ ; // Expand the range to embrace the new node. this . setStartBefore ( node ) ; }
Inserts a node at the start of the range. The range will be expanded
the contain the node.

@param {CKEDITOR.dom.node} node
Inserts a node at the start of the range . The range will be expanded the contain the node .