quicktags.js in the
When you have the visual editor turned off, this is the file responsible for created the buttons above the write panel. You know, the buttons like b for strong tags, i for em tags, b-quote for blockquote tags, etc. Personally I much prefer this to the Visual Editor, as I can see exactly what tags are being applied to my content.
But those default buttons are often not quite enough. I like to have a few more buttons easily available to me, like ones for h3-h5 tags, one that will wrap text in both code and pre tags, and one for a float-clearing div.
But remember in WordPress 2.8, this quicktags.js file is now compressed so it cannot be easily altered to include these new buttons like it used to. Thankfully they left a non-compressed version of the file in there as well, called
quicktags.dev.js. To use this instead, just rename the quicktags.js file something like quicktags.ORIG.js and rename
To add a new h3 button, add a block of code like this, amongst all the other similar code blocks:
edButtons[edButtons.length] = new edButton('ed_h3' ,'h3' ,'<h3>' ,'</h3>' ,'h3' );
Force refresh your Edit Post page and you should see the new button!