rem: function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; 
add: function isEmptyHTML(html) { return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == ""; }   if (para.getElementsByTagName("img").length > 0) return false;   if (para.getElementsByTagName("table").length > 0) return false;   if (para.getElementsByTagName("hr").length > 0) return false;   var nodes = tinyMCE.getNodeTree(para, new Array(), 3); for (var i=0; i<nodes.length; i++) { if (!isEmptyHTML(nodes[i].nodeValue)) return false; }   return true; 
context: 	function isEmpty(para) {		function isEmptyHTML(html) {			return html.replace(new RegExp('[ \t\r\n]+', 'g'), '').toLowerCase() == "";		}		// Check for images		if (para.getElementsByTagName("img").length > 0)			return false;		// Check for tables		if (para.getElementsByTagName("table").length > 0)			return false;		// Check for HRs		if (para.getElementsByTagName("hr").length > 0)			return false;		// Check all textnodes		var nodes = tinyMCE.getNodeTree(para, new Array(), 3);		for (var i=0; i<nodes.length; i++) {			if (!isEmptyHTML(nodes[i].nodeValue))				return false;		}		// No images, no tables, no hrs, no text content then it's empty		return true;	}
meta: 3433	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/3433/aa88f20cffff4b66f354df3be597cc45b0ca55c7/tiny_mce.js/clean/wp-includes/js/tinymce/tiny_mce.js