rem: var instance = tinyMCE.instances[editor_id]; instance.contentWindow.document.editor_id = editor_id; instance.contentWindow.document.addEventListener("keypress", tinyMCE.handleEvent, false); instance.contentWindow.document.addEventListener("keydown", tinyMCE.handleEvent, false); instance.contentWindow.document.addEventListener("keyup", tinyMCE.handleEvent, false); instance.contentWindow.document.addEventListener("click", tinyMCE.handleEvent, false); instance.contentWindow.document.addEventListener("focus", tinyMCE.handleEvent, false); instance.contentWindow.document.designMode = "on"; 
add: if (tinyMCE.isMSIE) { var patchFunc = function() { var event = document.frames[editor_id].event;  event.target = event.srcElement; event.target.editor_id = editor_id;  TinyMCE_handleEvent(event); };   document.frames[editor_id].document.onkeypress = patchFunc; document.frames[editor_id].document.onkeyup = patchFunc; document.frames[editor_id].document.onkeydown = patchFunc;    document.frames[editor_id].document.onmouseup = patchFunc; document.frames[editor_id].document.onclick = patchFunc; } else { var instance = tinyMCE.instances[editor_id];  instance.contentWindow.document.editor_id = editor_id; instance.contentWindow.document.addEventListener("keypress", tinyMCE.handleEvent, false); instance.contentWindow.document.addEventListener("keydown", tinyMCE.handleEvent, false); instance.contentWindow.document.addEventListener("keyup", tinyMCE.handleEvent, false); instance.contentWindow.document.addEventListener("click", tinyMCE.handleEvent, false); instance.contentWindow.document.addEventListener("mouseup", tinyMCE.handleEvent, false); instance.contentWindow.document.addEventListener("mousedown", tinyMCE.handleEvent, false); instance.contentWindow.document.addEventListener("focus", tinyMCE.handleEvent, false); instance.contentWindow.document.designMode = "on"; } 
context: function TinyMCE_addEventHandlers(editor_id) {	var instance = tinyMCE.instances[editor_id];	instance.contentWindow.document.editor_id = editor_id;	instance.contentWindow.document.addEventListener("keypress", tinyMCE.handleEvent, false); 	instance.contentWindow.document.addEventListener("keydown", tinyMCE.handleEvent, false); 	instance.contentWindow.document.addEventListener("keyup", tinyMCE.handleEvent, false); 	instance.contentWindow.document.addEventListener("click", tinyMCE.handleEvent, false); 	instance.contentWindow.document.addEventListener("focus", tinyMCE.handleEvent, false);	instance.contentWindow.document.designMode = "on";}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/873ce1c62e52365d732f67421272ae1302559b15/tiny_mce_src.js/buggy/www/extras/tinymce/jscripts/tiny_mce/tiny_mce_src.js