public/ckeditor/4.4dev/core/dom/range.js
function( endNode, endOffset ) {
			// W3C requires a check for the new position. If it is before the start
			// boundary, the range should be collapsed to the new end. It seams we
			// will not need this check for our use of this class so we can ignore
			// it for now.

			// Fixing invalid range end inside dtd empty elements.
			if ( endNode.type == CKEDITOR.NODE_ELEMENT && CKEDITOR.dtd.$empty[ endNode.getName() ] )
				endOffset = endNode.getIndex() + 1, endNode = endNode.getParent();

			this.endContainer = endNode;
			this.endOffset = endOffset;

			if ( !this.startContainer ) {
				this.startContainer = endNode;
				this.startOffset = endOffset;
			}

			updateCollapsed( this );
		}
function( endNode, endOffset ) {
			// W3C requires a check for the new position. If it is before the start
			// boundary, the range should be collapsed to the new end. It seams we
			// will not need this check for our use of this class so we can ignore
			// it for now.

			// Fixing invalid range end inside dtd empty elements.
			if ( endNode.type == CKEDITOR.NODE_ELEMENT && CKEDITOR.dtd.$empty[ endNode.getName() ] )
				endOffset = endNode.getIndex() + 1, endNode = endNode.getParent();

			this.endContainer = endNode;
			this.endOffset = endOffset;

			if ( !this.startContainer ) {
				this.startContainer = endNode;
				this.startOffset = endOffset;
			}

			updateCollapsed( this );
		}
function ( endNode , endOffset ) { // W3C requires a check for the new position. If it is before the start // boundary, the range should be collapsed to the new end. It seams we // will not need this check for our use of this class so we can ignore // it for now. // Fixing invalid range end inside dtd empty elements. if ( endNode . type == CKEDITOR . NODE_ELEMENT && CKEDITOR . dtd . $empty [ endNode . getName ( ) ] ) endOffset = endNode . getIndex ( ) + 1 , endNode = endNode . getParent ( ) ; this . endContainer = endNode ; this . endOffset = endOffset ; if ( ! this . startContainer ) { this . startContainer = endNode ; this . startOffset = endOffset ; } updateCollapsed ( this ) ; }
Sets the end position of a Range.

@param {CKEDITOR.dom.node} endNode The node to end the range.
@param {Number} endOffset An integer greater than or equal to zero
representing the offset for the end of the range from the start
of `endNode`.
Sets the end position of a Range .