rem: } while ( this._isWordChar( before_char ) 
add: } while ( this._isWordChar( before_char ) 
context: function writeBody() {	var d = window.document;	var is_html = false;	d.open();	// iterate through each text input.	for( var txtid = 0; txtid < this.textInputs.length; txtid++ ) {			var end_idx = 0;		var begin_idx = 0;			d.writeln( '<form name="textInput'+txtid+'">' );		var wordtxt = this.textInputs[txtid];		this.indexes[txtid] = [];		if( wordtxt ) {						var orig = this.originalSpellings[txtid];			if( !orig ) break;			//!!! plain text, or HTML mode?			d.writeln( '<div class="plainText">' );			// iterate through each occurrence of a misspelled word. 			for( var i = 0; i < orig.length; i++ ) {				// find the position of the current misspelled word,				// starting at the last misspelled word. 				// and keep looking if it's a substring of another word				do {					begin_idx = wordtxt.indexOf( orig[i], end_idx );					end_idx = begin_idx + orig[i].length;					// word not found? messed up!					if( begin_idx == -1 ) break; 					// look at the characters immediately before and after 					// the word. If they are word characters we'll keep looking.					var before_char = wordtxt.charAt( begin_idx - 1 );					var after_char = wordtxt.charAt( end_idx );				} while ( 					this._isWordChar( before_char ) 					|| this._isWordChar( after_char )				);				// keep track of its position in the original text. 				this.indexes[txtid][i] = begin_idx;				// write out the characters before the current misspelled word				for( var j = this._lastPos( txtid, i ); j < begin_idx; j++ ) {					// !!! html mode? make it html compatible					d.write( this.printForHtml( wordtxt.charAt( j )));				}				// write out the misspelled word. 				d.write( this._wordInputStr( orig[i] ));				// if it's the last word, write out the rest of the text				if( i == orig.length-1 ){					d.write( printForHtml( wordtxt.substr( end_idx )));				}						}			d.writeln( '</div>' );					}		d.writeln( '</form>' );	}	//for ( var j = 0; j < d.forms.length; j++ ) {	//	alert( d.forms[j].name );	//	for( var k = 0; k < d.forms[j].elements.length; k++ ) {	//		alert( d.forms[j].elements[k].name + ": " + d.forms[j].elements[k].value );	//	}	//}			// set the _forms property	this._forms = d.forms;	d.close();}
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