WP Super Edit & Some WordPress TinyMCE Notes

Discussion on wp-hackers centering around a simpler api for creating simple buttons.


There’s an example to add a quick button to TinyMCE at:

To do this in a WP plugin, you’d hook to mce_buttons_2 (or 3, or 4) to add your button to the list. Then you’d hook up a filter on tiny_mce_before_init to add your javascript code to the $initArray[‘setup’]. That should be pretty much that, really.

Someone suggested to combine that a simple button api with the shortcode api to create a simple visual editor button api. Probably way to many use cases to cover, but it is an interesting concept. Some groundwork exists in the Super Emoticons code for WP Super Edit.

Leave a Reply

Your email address will not be published. Required fields are marked *