rem: document.write('<sc'+'ript language="javascript" type="text/javascript" src="' + tinyMCE.baseURL + '/themes/' + this.settings['theme'] + '/editor_template.js"></script>'); 
add: document.write('<sc'+'ript language="javascript" type="text/javascript" src="' + tinyMCE.baseURL + '/themes/' + this.settings['theme'] + '/editor_template' + srcMode + '.js"></script>'); 
context: function TinyMCE_init(settings) {	var theme;	this.settings = settings;	function defParam(key, def_val) {		settings[key] = tinyMCE.getParam(key, def_val);	}	// Check if valid browser has execcommand support	if (typeof(document.execCommand) == 'undefined')		return;	// Get script base path	if (!tinyMCE.baseURL) {		var elements = document.getElementsByTagName('script');		for (var i=0; i<elements.length; i++) {			if (elements[i].src && (elements[i].src.indexOf("tiny_mce.js") != -1 || elements[i].src.indexOf("tiny_mce_src.js") != -1)) {				var src = elements[i].src;				src = src.substring(0, src.lastIndexOf('/'));				tinyMCE.baseURL = src;				break;			}		}	}	// Get document base path	this.documentBasePath = document.location.href;	if (this.documentBasePath.indexOf('?') != -1)		this.documentBasePath = this.documentBasePath.substring(0, this.documentBasePath.indexOf('?'));	this.documentBasePath = this.documentBasePath.substring(0, this.documentBasePath.lastIndexOf('/'));	// If not HTTP absolute	if (tinyMCE.baseURL.indexOf('://') == -1 && tinyMCE.baseURL.charAt(0) != '/') {		// If site absolute		tinyMCE.baseURL = this.documentBasePath + "/" + tinyMCE.baseURL;	}	// Set default values on settings	defParam("mode", "none");	defParam("theme", "default");	defParam("plugins", "", true);	defParam("language", "en");	defParam("docs_language", this.settings['language']);	defParam("elements", "");	defParam("textarea_trigger", "mce_editable");	defParam("valid_elements", "a[name|href|target|title],strong/b[class],em/i[class],strike[class],u[class],p[class|align],ol,ul,li,br,img[class|src|border=0|alt|title|hspace|vspace|width|height|align],sub,sup,blockquote[dir|style],table[border=0|cellspacing|cellpadding|width|height|class|align],tr[class|rowspan|width|height|align|valign],td[class|colspan|rowspan|width|height|align|valign],div[class|align],span[class|align],pre[class|align],address[class|align],h1[class|align],h2[class|align],h3[class|align],h4[class|align],h5[class|align],h6[class|align],hr");	defParam("extended_valid_elements", "");	defParam("invalid_elements", "");	defParam("encoding", "");	defParam("urlconvertor_callback", "TinyMCE_convertURL");	defParam("save_callback", "");	defParam("debug", false);	defParam("force_br_newlines", false);	defParam("force_p_newlines", true);	defParam("add_form_submit_trigger", true);	defParam("relative_urls", true);	defParam("remove_script_host", true);	defParam("focus_alert", true);	defParam("document_base_url", "" + document.location.href);	defParam("visual", true);	defParam("visual_table_style", "border: 1px dashed #BBBBBB");	defParam("setupcontent_callback", "");	defParam("fix_content_duplication", true);	defParam("custom_undo_redo", true);	defParam("custom_undo_redo_levels", -1);	defParam("custom_undo_redo_keyboard_shortcuts", true);	defParam("verify_css_classes", true);	defParam("trim_span_elements", true);	defParam("verify_html", true);	defParam("apply_source_formatting", false);	defParam("directionality", "ltr");	defParam("auto_cleanup_word", false);	defParam("cleanup_on_startup", false);	defParam("inline_styles", false);	defParam("convert_newlines_to_brs", false);	defParam("auto_reset_designmode", false);	defParam("entities", "160,nbsp,38,amp,34,quot,162,cent,8364,euro,163,pound,165,yen,169,copy,174,reg,8482,trade,8240,permil,181,micro,183,middot,8226,bull,8230,hellip,8242,prime,8243,Prime,167,sect,182,para,223,szlig,8249,lsaquo,8250,rsaquo,171,laquo,187,raquo,8216,lsquo,8217,rsquo,8220,ldquo,8221,rdquo,8218,sbquo,8222,bdquo,60,lt,62,gt,8804,le,8805,ge,8211,ndash,8212,mdash,175,macr,8254,oline,164,curren,166,brvbar,168,uml,161,iexcl,191,iquest,710,circ,732,tilde,176,deg,8722,minus,177,plusmn,247,divide,8260,frasl,215,times,185,sup1,178,sup2,179,sup3,188,frac14,189,frac12,190,frac34,402,fnof,8747,int,8721,sum,8734,infin,8730,radic,8764,sim,8773,cong,8776,asymp,8800,ne,8801,equiv,8712,isin,8713,notin,8715,ni,8719,prod,8743,and,8744,or,172,not,8745,cap,8746,cup,8706,part,8704,forall,8707,exist,8709,empty,8711,nabla,8727,lowast,8733,prop,8736,ang,180,acute,184,cedil,170,ordf,186,ordm,8224,dagger,8225,Dagger,192,Agrave,194,Acirc,195,Atilde,196,Auml,197,Aring,198,AElig,199,Ccedil,200,Egrave,202,Ecirc,203,Euml,204,Igrave,206,Icirc,207,Iuml,208,ETH,209,Ntilde,210,Ograve,212,Ocirc,213,Otilde,214,Ouml,216,Oslash,338,OElig,217,Ugrave,219,Ucirc,220,Uuml,376,Yuml,222,THORN,224,agrave,226,acirc,227,atilde,228,auml,229,aring,230,aelig,231,ccedil,232,egrave,234,ecirc,235,euml,236,igrave,238,icirc,239,iuml,240,eth,241,ntilde,242,ograve,244,ocirc,245,otilde,246,ouml,248,oslash,339,oelig,249,ugrave,251,ucirc,252,uuml,254,thorn,255,yuml,914,Beta,915,Gamma,916,Delta,917,Epsilon,918,Zeta,919,Eta,920,Theta,921,Iota,922,Kappa,923,Lambda,924,Mu,925,Nu,926,Xi,927,Omicron,928,Pi,929,Rho,931,Sigma,932,Tau,933,Upsilon,934,Phi,935,Chi,936,Psi,937,Omega,945,alpha,946,beta,947,gamma,948,delta,949,epsilon,950,zeta,951,eta,952,theta,953,iota,954,kappa,955,lambda,956,mu,957,nu,958,xi,959,omicron,960,pi,961,rho,962,sigmaf,963,sigma,964,tau,965,upsilon,966,phi,967,chi,968,psi,969,omega,8501,alefsym,982,piv,8476,real,977,thetasym,978,upsih,8472,weierp,8465,image,8592,larr,8593,uarr,8594,rarr,8595,darr,8596,harr,8629,crarr,8656,lArr,8657,uArr,8658,rArr,8659,dArr,8660,hArr,8756,there4,8834,sub,8835,sup,8836,nsub,8838,sube,8839,supe,8853,oplus,8855,otimes,8869,perp,8901,sdot,8968,lceil,8969,rceil,8970,lfloor,8971,rfloor,9001,lang,9002,rang,9674,loz,9824,spades,9827,clubs,9829,hearts,9830,diams,8194,ensp,8195,emsp,8201,thinsp,8204,zwnj,8205,zwj,8206,lrm,8207,rlm,173,shy");	defParam("cleanup_callback", "");	defParam("add_unload_trigger", true);	defParam("ask", false);	defParam("nowrap", false);	defParam("auto_resize", false);	// Setup baseHREF	var baseHREF = tinyMCE.settings['document_base_url'];	if (baseHREF.indexOf('?') != -1)		baseHREF = baseHREF.substring(0, baseHREF.indexOf('?'));	this.settings['base_href'] = baseHREF.substring(0, baseHREF.lastIndexOf('/')) + "/";	theme = this.settings['theme'];	// Theme url	this.settings['theme_href'] = tinyMCE.baseURL + "/themes/" + theme;	if (!tinyMCE.isMSIE)		this.settings['force_br_newlines'] = false;	if (tinyMCE.getParam("content_css", false)) {		var cssPath = tinyMCE.getParam("content_css", "");		// Is relative		if (cssPath.indexOf('://') == -1 && cssPath.charAt(0) != '/')			this.settings['content_css'] = this.documentBasePath + "/" + cssPath;		else			this.settings['content_css'] = cssPath;	} else		this.settings['content_css'] = tinyMCE.baseURL + "/themes/" + theme + "/editor_content.css";	if (tinyMCE.getParam("popups_css", false)) {		var cssPath = tinyMCE.getParam("popups_css", "");		// Is relative		if (cssPath.indexOf('://') == -1 && cssPath.charAt(0) != '/')			this.settings['popups_css'] = this.documentBasePath + "/" + cssPath;		else			this.settings['popups_css'] = cssPath;	} else		this.settings['popups_css'] = tinyMCE.baseURL + "/themes/" + theme + "/editor_popup.css";	if (tinyMCE.getParam("editor_css", false)) {		var cssPath = tinyMCE.getParam("editor_css", "");		// Is relative		if (cssPath.indexOf('://') == -1 && cssPath.charAt(0) != '/')			this.settings['editor_css'] = this.documentBasePath + "/" + cssPath;		else			this.settings['editor_css'] = cssPath;	} else		this.settings['editor_css'] = tinyMCE.baseURL + "/themes/" + theme + "/editor_ui.css";	if (tinyMCE.settings['debug']) {		var msg = "Debug: \n";		msg += "baseURL: " + this.baseURL + "\n";		msg += "documentBasePath: " + this.documentBasePath + "\n";		msg += "content_css: " + this.settings['content_css'] + "\n";		msg += "popups_css: " + this.settings['popups_css'] + "\n";		msg += "editor_css: " + this.settings['editor_css'] + "\n";		alert(msg);	}	// Init HTML cleanup	this._initCleanup();	tinyMCE.addEvent(window, "load", TinyMCE_onLoad);	document.write('<sc'+'ript language="javascript" type="text/javascript" src="' + tinyMCE.baseURL + '/themes/' + this.settings['theme'] + '/editor_template.js"></script>');	document.write('<sc'+'ript language="javascript" type="text/javascript" src="' + tinyMCE.baseURL + '/langs/' + this.settings['language'] +  '.js"></script>');	document.write('<link href="' + this.settings['editor_css'] + '" rel="stylesheet" type="text/css">');	// Add theme plugins	var themePlugins = tinyMCE.getParam('plugins', '', true, ',');	if (this.settings['plugins'] != '') {		for (var i=0; i<themePlugins.length; i++)			document.write('<sc'+'ript language="javascript" type="text/javascript" src="' + tinyMCE.baseURL + '/plugins/' + themePlugins[i] + '/editor_plugin.js"></script>');	}}
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