rem: if(container.tagName.toLowerCase()=="body") execCom("formatblock","P"); 
add: name=container.tagName.toLowerCase();   if( name=="strong" || name=="b" || name=="em" || name=="i" || name=="sub" || name=="sup" || name=="a"  ) name=container.parentNode.tagName.toLowerCase();  if(name=="body") execCom("formatblock","P"); 
context: function iframe_keyup_handler(evt){		if(evt.keyCode==13 && !evt.shiftKey) //RETURN key	{		//cleanup <br><br> between paragraphs				nodes=editor().childNodes;		for(var x=0;x<nodes.length;x++)		{			if(nodes.item(x).nodeName.toLowerCase()=="br") editor().removeChild(nodes.item(x));		}			}		else if(evt.keyCode!=8 && evt.keyCode!=46) //NOT BACKSPACE AND NOT DELETE	{		//text nodes replaced by P		container=getSelectedContainer();		if(container.tagName.toLowerCase()=="body") execCom("formatblock","P");	}		displayClasses();}
meta: 5576	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5576/3be42528b0ceba765b1b69e3e7bd7619791f2418/wym.js/clean/editor/wym.js