rem: var curInst = dojo.widget.Editor2Manager.getCurrentInstance(); if(curInst){ curInst.focus(); if(window.find){ curInst.window.find(text, option & this.SearchOption.CaseSensitive ? true : false, option & this.SearchOption.SearchBackwards ? true : false, option & this.SearchOption.WrapSearch ? true : false, option & this.SearchOption.WholeWord ? true : false ); }else if(dojo.body().createTextRange){ var range = curInst.document.body.createTextRange(); var found = range.findText(text, (option&this.SearchOption.SearchBackwards)?1:-1, option ); if(found){ range.scrollIntoView() ; range.select() ; }else{ alert("Can not find "+text+" in the document"); } 
add: this._editor.focus(); if(window.find){ this._editor.window.find(text, option & this.SearchOption.CaseSensitive ? true : false, option & this.SearchOption.SearchBackwards ? true : false, option & this.SearchOption.WrapSearch ? true : false, option & this.SearchOption.WholeWord ? true : false ); }else if(dojo.body().createTextRange){ var range = this._editor.document.body.createTextRange(); var found = range.findText(text, (option&this.SearchOption.SearchBackwards)?1:-1, option ); if(found){ range.scrollIntoView() ; range.select() ; 
context: 	find: function(text, option){		var curInst = dojo.widget.Editor2Manager.getCurrentInstance();		if(curInst){			curInst.focus();			if(window.find){ //moz				curInst.window.find(text, 					option & this.SearchOption.CaseSensitive ? true : false,					option & this.SearchOption.SearchBackwards ? true : false,					option & this.SearchOption.WrapSearch ? true : false,					option & this.SearchOption.WholeWord ? true : false					);			}else if(dojo.body().createTextRange){ //IE				var range = curInst.document.body.createTextRange();				var found = range.findText(text, (option&this.SearchOption.SearchBackwards)?1:-1, option );				if(found){					range.scrollIntoView() ;					range.select() ;				}else{					alert("Can not find "+text+" in the document");				}			}else{				alert("No idea how to search in this browser. Please submit patch if you know.");			}		}	}
meta: 4707	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/4707/50c3492c4c3c825dbd3401e134a19ed46799c456/FindReplace.js/clean/www/resources/dojo-ajax/src/widget/Editor2Plugin/FindReplace.js