add:  content = content.replace(new RegExp('<br ?/?>[ \t]*$', ''), '');  
context: function TinyMCE_wordpress_cleanup(type, content) {	switch (type) {			case "insert_to_editor":			var startPos = 0;			var altMore = tinyMCE.getLang('lang_wordpress_more_alt');			var altPage = tinyMCE.getLang('lang_wordpress_page_alt');			// Parse all <!--more--> tags and replace them with images			while ((startPos = content.indexOf('<!--more-->', startPos)) != -1) {				// Insert image				var contentAfter = content.substring(startPos + 11);				content = content.substring(0, startPos);				content += '<img src="' + (tinyMCE.getParam("theme_href") + "/images/spacer.gif") + '" ';				content += ' width="100%" height="10px" ';				content += 'alt="'+altMore+'" title="'+altMore+'" class="mce_plugin_wordpress_more" />';				content += contentAfter;				startPos++;			}			var startPos = 0;			// Parse all <!--page--> tags and replace them with images			while ((startPos = content.indexOf('<!--nextpage-->', startPos)) != -1) {				// Insert image				var contentAfter = content.substring(startPos + 15);				content = content.substring(0, startPos);				content += '<img src="' + (tinyMCE.getParam("theme_href") + "/images/spacer.gif") + '" ';				content += ' width="100%" height="10px" ';				content += 'alt="'+altPage+'" title="'+altPage+'" class="mce_plugin_wordpress_page" />';				content += contentAfter;				startPos++;			}			break;		case "get_from_editor":			// Parse all img tags and replace them with <!--more-->			var startPos = -1;			while ((startPos = content.indexOf('<img', startPos+1)) != -1) {				var endPos = content.indexOf('/>', startPos);				var attribs = TinyMCE_wordpress_parseAttributes(content.substring(startPos + 4, endPos));				if (attribs['class'] == "mce_plugin_wordpress_more") {					endPos += 2;						var embedHTML = '<!--more-->';						// Insert embed/object chunk					chunkBefore = content.substring(0, startPos);					chunkAfter = content.substring(endPos);					content = chunkBefore + embedHTML + chunkAfter;				}				if (attribs['class'] == "mce_plugin_wordpress_page") {					endPos += 2;						var embedHTML = '<!--nextpage-->';						// Insert embed/object chunk					chunkBefore = content.substring(0, startPos);					chunkAfter = content.substring(endPos);					content = chunkBefore + embedHTML + chunkAfter;				}			}			// The Curse of the Trailing <br />			content = content.replace(new RegExp('<br ?/?>[ \t]*$', ''), '');			break;	}	// Pass through to next handler in chain	return content;}
meta: 6462	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6462/91c25538e85b6e6b22628133fccf13a5ad7d6f14/editor_plugin_src.js/clean/wp-includes/js/tinymce/plugins/wordpress/editor_plugin_src.js