Hi
I want to disable or remove the 'view' option from the context menu. I generate the CKFinder instance by using the Java taglib:
<%@taglib uri="http://cksource.com/ckfinder" prefix="ckfinder" %>
In the web.xml I initialize the config.xml but I can't found any option to disable the view button. Is there any TLD available for the config.xml?
I know it is possible to disable the view with the javascript function
disableFolderContextMenuOption('viewFile');
See: http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinderAPI.html#disableFolderContextMenuOption
But of course this is client side and it i want to do it server side on load.
Adding the folowing code in ckfinder/ckfinder.html works:
ckfinder.callback = function( api ) {
api.disableFileContextMenuOption( 'viewFile', false );
};
Thanks in advance
EQMichel
Hi there,
I use the callback function as below:
callback : function( api ){api.disableFileContextMenuOption( 'viewFile' );}
which removed the view context menu item.
Bill