I’ve been trying to implement this plugin in my jQuery version of TinyMCE:
http://www.tinymce.com/tryit/menu_button.php
This example has the plugin loaded with TinyMCE, but that doesn’t work with jQuery.
What I want to do is to create it as a separate TinyMCE plug-in, but I am unsure how to accomplish that. Tutorials for plugin creation with TinyMCE are all about dialog windows, but that’s not what I need, as I just want to have a dropdown menu of little snippets that will be added to the place where the cursor is.
Can anyone point me to some example where it shows how to create such a toolbar dropdown? I’ve gone through Google like crazy, unable to find anything remotely similar and the example I posted above is not technically a plugin, since I need to generate the content with PHP.
This task is not so easy (had to struggle throught this too).
You need to set the function createControl in one of your own custom plugins.
I will show you some code of one of my own plugins which should point you in the right direction