rem: doc = instance.contentWindow.document; 
add: doc = instance.getDoc(); 
context: function TinyMCE_getCSSClasses(editor_id, doc) {	var output = new Array();	// Is cached, use that	if (typeof(tinyMCE.cssClasses) != "undefined")		return tinyMCE.cssClasses;	if (typeof(editor_id) == "undefined" && typeof(doc) == "undefined") {		var instance;		for (var instanceName in tinyMCE.instances) {			instance = tinyMCE.instances[instanceName];			break;		}		doc = instance.contentWindow.document;	}	if (typeof(doc) == "undefined") {		var instance = tinyMCE.getInstanceById(editor_id);		doc = instance.contentWindow.document;	}	if (doc) {		var styles = tinyMCE.isMSIE ? doc.styleSheets : doc.styleSheets;		if (styles && styles.length > 0) {			var csses = null;			// Just ignore any errors			eval("try {var csses = tinyMCE.isMSIE ? doc.styleSheets(0).rules : doc.styleSheets[0].cssRules;} catch(e) {}");			if (!csses)				return null;			for (var i=0; i<csses.length; i++) {				var selectorText = csses[i].selectorText;				// Can be multiple rules per selector				var rules = selectorText.split(',');				for (var c=0; c<rules.length; c++) {					// Invalid rule					if (rules[c].indexOf(' ') != -1 || rules[c].indexOf(':') != -1 || rules[c].indexOf('mce_') == 1)						continue;					// Is class rule					if (rules[c].indexOf('.') != -1) {						//alert(rules[c].substring(rules[c].indexOf('.')));						output[output.length] = rules[c].substring(rules[c].indexOf('.')+1);					}				}			}		}	}	// Cache em	if (output.length > 0)		tinyMCE.cssClasses = output;	return output;}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/914f29b169169eaf678616905b5062afd73de30a/tiny_mce_src.js/buggy/www/extras/tinymce/jscripts/tiny_mce/tiny_mce_src.js