rem: if (targetElement && targetElement.nodeName.toLowerCase() == "span") { 
add: if (targetElement && targetElement.nodeName.toLowerCase() == "span") 
context: function TinyMCE_setEditMode(editor_id, mode) {	var targetMCEControl = this.instances[editor_id];	var dynamicIFrame = false;	if (!this.isMSIE) {		var targetElement = document.getElementById(editor_id);		if (targetElement && targetElement.nodeName.toLowerCase() == "span") {			targetElement = tinyMCE._createIFrame(targetElement);			dynamicIFrame = true;		}		targetMCEControl.targetElement = targetElement;		targetMCEControl.contentDocument = targetElement.contentDocument;		targetMCEControl.contentWindow = targetElement.contentWindow;		//targetMCEControl.contentWindow.document.designMode = mode ? "on" : "off";	} else {		var targetElement = document.getElementById(editor_id);		if (targetElement && targetElement.nodeName.toLowerCase() == "span") {			targetElement = tinyMCE._createIFrame(targetElement);			dynamicIFrame = true;		} else			targetElement = document.frames[editor_id];		targetMCEControl.targetElement = targetElement;		targetMCEControl.contentDocument = targetElement.window.document;		targetMCEControl.contentWindow = targetElement.window;		targetMCEControl.contentDocument.designMode = mode ? "on" : "off";	}	// Setup base HTML	var doc = targetMCEControl.contentDocument;	if (dynamicIFrame) {		var html = "";		html += '<!doctype html public "-//w3c//dtd html 4.0 transitional//en">';		html += '<html>';		html += '<head>';		html += '<title>blank_page</title>';		html += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';		html += '</head>';		html += '<body>';		html += '</body>';		html += '</html>';		try {			targetMCEControl.contentWindow.document.designMode = "on";			doc.open();			doc.write(html);			doc.close();		} catch (e) {			// Failed Mozilla 1.3			targetMCEControl.contentWindow.document.location.href = tinyMCE.baseURL + "/blank.htm";		}	}	if (tinyMCE.isMSIE) {		document.frames[editor_id].document.ondeactive = tinyMCE.handleEvent;		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		document.frames[editor_id].document.onkeypress = patchFunc;		document.frames[editor_id].document.onkeyup = patchFunc;		document.frames[editor_id].document.onkeydown = patchFunc;		// Due to stange focus bug in MSIE this line is disabled for now		//document.frames[editor_id].document.onmousedown = patchFunc;		document.frames[editor_id].document.onmouseup = patchFunc;		document.frames[editor_id].document.onclick = patchFunc;	}	//window.setTimeout("tinyMCE.setupContent('" + editor_id + "');", (tinyMCE.isMSIE ? 1 : 1000));	tinyMCE.setupContent(editor_id);}
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