rem: var doc = instance.contentWindow.document; 
add: var doc = instance.getDoc(); 
context: function TinyMCE_addEventHandlers(editor_id) {	if (tinyMCE.isMSIE) {		var doc = document.frames[editor_id].document;		var patchFunc = function() {			var event = document.frames[editor_id].event;			event.target = event.srcElement;			event.target.editor_id = editor_id;			TinyMCE_handleEvent(event);		};		// Event patch		doc.onkeypress = patchFunc;		doc.onkeyup = patchFunc;		doc.onkeydown = patchFunc;		if (tinyMCE.settings['add_unload_trigger']) {			tinyMCE.addEvent(window, "unload", function () {tinyMCE.triggerSave(true, true);});			tinyMCE.addEvent(window, "beforeunload", function () {tinyMCE.triggerSave(true, true);});		}		// Due to stange focus bug in MSIE this line is disabled for now		//document.frames[editor_id].document.onmousedown = patchFunc;		doc.onmouseup = patchFunc;		doc.onclick = patchFunc;	} else {		var instance = tinyMCE.instances[editor_id];		var doc = instance.contentWindow.document;		doc.editor_id = editor_id;		tinyMCE.addEvent(doc, "keypress", tinyMCE.handleEvent);		tinyMCE.addEvent(doc, "keypress", tinyMCE.handleEvent);		tinyMCE.addEvent(doc, "keydown", tinyMCE.handleEvent);		tinyMCE.addEvent(doc, "keyup", tinyMCE.handleEvent);		tinyMCE.addEvent(doc, "click", tinyMCE.handleEvent);		tinyMCE.addEvent(doc, "mouseup", tinyMCE.handleEvent);		tinyMCE.addEvent(doc, "mousedown", tinyMCE.handleEvent);		tinyMCE.addEvent(doc, "focus", tinyMCE.handleEvent);		if (tinyMCE.settings['add_unload_trigger'])			tinyMCE.addEvent(window, "unload", function () {tinyMCE.triggerSave(true, true);});		eval('try { doc.designMode = "On"; } catch(e) {}');	}}
meta: 1948	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1948/914f29b169169eaf678616905b5062afd73de30a/tiny_mce_src.js/buggy/www/extras/tinymce/jscripts/tiny_mce/tiny_mce_src.js