rem: endStr = this.textInputs[textIndex].substring( pos + oldText.length, this.textInputs[textIndex].length 
add: endStr = this.textInputs[textIndex].substring( pos + oldText.length, this.textInputs[textIndex].length 
context: function setText( textIndex, wordIndex, newText ) {	var word = this._getWordObject( textIndex, wordIndex );	var beginStr;	var endStr;	if( word ) {		var pos = this.indexes[textIndex][wordIndex];		var oldText = word.value;		// update the text given the index of the string		beginStr = this.textInputs[textIndex].substring( 0, pos );		endStr = this.textInputs[textIndex].substring( 			pos + oldText.length, 			this.textInputs[textIndex].length 		);		this.textInputs[textIndex] = beginStr + newText + endStr;				// adjust the indexes on the stack given the differences in 		// length between the new word and old word. 		var lengthDiff = newText.length - oldText.length;		this._adjustIndexes( textIndex, wordIndex, lengthDiff );				word.size = newText.length;		word.value = newText;		this.removeFocus( textIndex, wordIndex );	}}
meta: 8533	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/8533/9e983f26dc3628701a539d2377aaa3db1e8f1f71/wordWindow.js/buggy/library/src/webapp/editor/FCKeditor/editor/dialog/fck_spellerpages/spellerpages/wordWindow.js