XHTML Validation Quicktags Hack Mark Ghosh (LaughingLizard) http://weblogtoolscollection.com --Open up your quicktags.js file inside your wp-admin folder. --Find The following: edLinks[edLinks.length] = new edLink('alexking.org' ,'http://www.alexking.org/' ); --Add the following after that IF you want to validate XHTML 1.0 Strict: function checkXHTML() { var s,d,f,i,x,u; s='
'; function R(w) { var i,x; for(i=0;x=w.document.getElementsByTagName("textarea")[i];++i){ s+=x.value; u=true; } for(i=0;x=w.frames[i];++i) try{R(x)} catch(e){} } R(top); s+="\n
"; if(!u) { alert("No textareas to validate!"); return; } d=open().document; d.write('
'); f=d.forms[0]; for(i=0;x=["area","warnings","input"][i];++i) { d.write(""); f[i].value=[s,"yes","yes"][i]; } f.submit(); } ####OR########## --Add the following after that if you want to validate XHTML 1.0 transitional function checkXHTML() { var s,d,f,i,x,u; s='
'; function R(w) { var i,x; for(i=0;x=w.document.getElementsByTagName("textarea")[i];++i){ s+=x.value; u=true; } for(i=0;x=w.frames[i];++i) try{R(x)} catch(e){} } R(top); s+="\n
"; if(!u) { alert("No textareas to validate!"); return; } d=open().document; d.write(''); f=d.forms[0]; for(i=0;x=["area","warnings","input"][i];++i) { d.write(""); f[i].value=[s,"yes","yes"][i]; } f.submit(); } --Find the following line: document.write(''); --Add the following after that: document.write(''); --Now there should be a "validate" button in your admin interface. Once you are done writing the post, just click on validate to make sure you have XHTML validated posts before posting. The original idea and much of the javascript code came from http://www.squarefree.com/archives/000031.html so thank you Jesse!