add:  content = content.replace(new RegExp('<[ ]*embed','gi'),'<embed'); content = content.replace(new RegExp('<[ ]*/embed[ ]*>','gi'),'</embed>'); content = content.replace(new RegExp('<[ ]*object','gi'),'<object'); content = content.replace(new RegExp('<[ ]*/object[ ]*>','gi'),'</object>');   while ((startPos = content.indexOf('<embed', startPos+1)) != -1) { var endPos = content.indexOf('>', startPos); var attribs = TinyMCE_flash_parseAttributes(content.substring(startPos + 6, endPos)); embedList[embedList.length] = attribs; }   var index = 0; while ((startPos = content.indexOf('<object', startPos)) != -1) { var endPos = content.indexOf('>', startPos);   endPos = content.indexOf('/>', endPos); if (endPos == -1) { endPos = content.indexOf('</object>', endPos); endPos += 8; } else endPos += 2;  if (index >= embedList.length) break;  var attribs = embedList[index];   var contentAfter = content.substring(endPos+1); content = content.substring(0, startPos); content += '<img name="mce_plugin_flash" width="' + attribs["width"] + '" height="' + attribs["height"] + '"'; content += ' src="' + (tinyMCE.getParam("theme_href") + '/images/spacer.gif') + '" title="' + attribs["src"] + '"'; content += ' alt="' + attribs["src"] + '" class="mce_plugin_flash" />' + content.substring(endPos+1); content += contentAfter; index++;  startPos++; } break;  
context: function TinyMCE_flash_cleanup(type, content) {	// Handle custom cleanup	switch (type) {		// Called when editor is filled with content		case "insert_to_editor":			return TinyMCE_flash_mkCodeCleanup('insertToEditor', content);		// Called when editor is pass out content		case "get_from_editor":			return TinyMCE_flash_mkCodeCleanup('getFromEditor', content);	}	// Pass through to next handler in chain	return content;}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/914f29b169169eaf678616905b5062afd73de30a/editor_plugin_src.js/buggy/www/extras/tinymce/jscripts/tiny_mce/plugins/flash/editor_plugin_src.js