Can someone point me in the right direction here...
I need to know where (in which file) should I modify for adding an option to the context menu in the file browser.
I am building a text file (txt|asp|php|js|inc|aspx|cs|vb|vbs|css|etc...) editor for this, and need to add the link to the File context menu.
I need to know where (in which file) should I modify for adding an option to the context menu in the file browser.
I am building a text file (txt|asp|php|js|inc|aspx|cs|vb|vbs|css|etc...) editor for this, and need to add the link to the File context menu.

Re: Add a link to the Context Menu
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: Add a link to the Context Menu
I need to know the same thing.
I want to add a link to ckFinder Context Menu.
Thank's
Re: Add a link to the Context Menu
I've created a plugin called 'Accordion' and this is what I've added inside fckplugin.js. Code is simplified but should give you a brief what needs to be done and how.
1. Define listener that is responsible for showing context menu. Nicely attach your logic to FCK existing context menu.
function FCK_ContextMenu_AccordionListener() { return { AddItems : function(menu, tag, tagName) { menu.AddSeparator(); menu.AddItem('Accordion', FCKLang.AccordionCmdProperties, FCKPlugins.Items['accordion'].Path + 'accordion.gif'); var oItem = menu.AddItem('Accordion', FCKLang.AccordionCmdOptions) ; oItem.AddItem('AccordionInsertLinks', FCKLang.AccordionCmdInsertLinks, FCKPlugins.Items['accordion'].Path + 'insert_links.gif'); } } }; }2. Define class that manipulates DOM. Insert your logic here
var FCKAccordionHandler = new Object(); FCKAccordionHandler.InsertLinks = function() { var oEditorDocument = FCK.EditorDocument; ... }3. Define commands used in context menu. This lists all available command names and assigns them callback functions
var FCKAccordionCommand = function( command ) { this.Name = command; } FCKAccordionCommand.prototype = { Execute : function() { FCKUndo.SaveUndoStep(); switch (this.Name) { case 'AccordionInsertLinks': return FCKAccordionHandler.InsertLinks(); } }, };4. Register commands inside FCKEditor machinery
FCKCommands.RegisterCommand('AccordionInsertLinks', new FCKAccordionCommand('AccordionInsertLinks')); // Magic to register context menu var oMenu = FCK.ContextMenu; oMenu.RegisterListener(FCK_ContextMenu_AccordionListener());Re: Add a link to the Context Menu