How to add item in contextmenu of tinymce. I need to open a thickbox from contextmenu selection of tinymce
var url = "upload.php?keepThis=true&TB_iframe=1&width=1000&height=400&model=true";
tb_show("Edit Image", url);
I can call thickbox with above codes. Where i need to recode in contextmenu plugin. Help me
Ok, in that case you need to load the contextmenu plugin (do this before you load your custom plugin!)
Here is the full sample code for an own contextmenu plugin. You need to have this code inside a file called ‘editor_plugin.js’ (and a file called ‘editor_plugin_src.js’) in a subdirectory named ‘contextmenu’ of the plugins directory.
Make sure the brackets are set right (i had to copy/paste and delete parts of the code so there might brackets be missing).