I want to add quicktags that do more than just add markup. For instance, I would like to add a quicktag to run a function do apply a js regex on the page content. How can I add a quicktag that executes a function?
To give a specific example, I would like to add a button that removes all markup tags in the entire post text. This is analogous to the predefined quicktags for finding unmatched tags, or “proofread”, etc.
Simple example that will add a Quicktag button that calls a Javascript function when it is clicked…
UPDATE…. Adding a Callback function that utilizes the passed in variables…
you should write a tinymce plugin, then load it (using tinymce advanced plugin)