How to add a custom button in the insert menu?
Im using tinymce in a textarea and the content the tinymce code is like:
- tinymce.init({
- selector: 'textarea',
- plugins: 'image code link lists textcolor wordcount ' +
- ' hr pagebreak colorpicker textpattern anchor table media',
- relative_urls: true,
- file_browser_callback: function (field_name, url, type, win) {
- // trigger file upload form
- if (type == 'image') $('#formUpload input').click();
- }
- });
And its working. But I would like to include in the "Insert" menu of the tinymce add a custom button to a custom functionality. Do you know how to achieve that?
http://fiddle.tinymce.com/Tzgaab