Add custom Button to TinyMCE Editor
by pixelithe on Februar 17, 2010
One of these days I stumbled across a not-so-old problem that I finally gave the attention it needed to be solved.
I wanted to add an extra custom button to WordPress TinyMCE Editor with which a piece of code or text could be inserted.
I found this Article by an amazing girl named Deanna Schneider that gave me about 80% of the solution.
I downloaded the code and just made a few changes to the tinymce/windows.php file and that did the trick. Here’s what I did:
- put my own Text into the Variable tagtext
- Made the Input field into a hidden field and gave it a value of 1
- Edited the image for the button to be something I like
Thank you Deanna Schneider!
For those interested, you can download my version of the helloworld-plugin: helloworld_mod
Leave your comment