[wp-hackers] Editor button cusotmizations

Austin Matzko if.website at gmail.com
Wed Apr 11 22:00:32 GMT 2007


On 4/11/07, Elliotte Harold <elharo at metalab.unc.edu> wrote:
> It's very weird that this is all done with JavaScript. It's not clear
> why this couldn't be simple HTML.

You need the JavaScript to change the text in the textarea.

> Anyway, it's obvious in the code how to remove or add or change a
> button. I could very quickly hack this, but then I'd have to maintain my
> changes across upgrades. I'm not sure where I should be looking to do
> this in a plug-in though. Is there a specific action or filter that
> would be appropriate?

Probably the simplest is to use the 'admin_head' hook and put the
JavaScript, or a link to your script's file, in the admin page's
header.


More information about the wp-hackers mailing list