rem: var inst = tinyMCE.getInstanceById(editor_id); 
add: var inst = tinyMCE.getInstanceById(editor_id), h, re, ot, tn; 
context: 	removeMCEControl : function(editor_id) {		var inst = tinyMCE.getInstanceById(editor_id);		if (inst) {			inst.switchSettings();			editor_id = inst.editorId;			var html = tinyMCE.getContent(editor_id);			// Remove editor instance from instances array			var tmpInstances = new Array();			for (var instanceName in tinyMCE.instances) {				var instance = tinyMCE.instances[instanceName];				if (!tinyMCE.isInstance(instance))					continue;				if (instanceName != editor_id)						tmpInstances[instanceName] = instance;			}			tinyMCE.instances = tmpInstances;			tinyMCE.selectedElement = null;			tinyMCE.selectedInstance = null;			// Remove element			var replaceElement = document.getElementById(editor_id + "_parent");			var oldTargetElement = inst.oldTargetElement;			var targetName = oldTargetElement.nodeName.toLowerCase();			if (targetName == "textarea" || targetName == "input") {				// Just show the old text area				replaceElement.parentNode.removeChild(replaceElement);				oldTargetElement.style.display = "inline";				oldTargetElement.value = html;			} else {				oldTargetElement.innerHTML = html;				oldTargetElement.style.display = 'block';				replaceElement.parentNode.insertBefore(oldTargetElement, replaceElement);				replaceElement.parentNode.removeChild(replaceElement);			}		}	},
meta: 10343	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10343/524e24acf79702622c51dba4bb678337072e34b9/tiny_mce_src.js/clean/mambots/editors/tinymce/jscripts/tiny_mce/tiny_mce_src.js