We have integrated CKFinder with CKEditor by setting fileBrowserBrowseUrl etc. What is the simplest way to disable the folder and file context menu in CKFinder? It would be good to know how to mask individual functions..but we don't mind disabling the entire context menu. Is there a way to do this via a config property and without having to touch the CKFinder code? Thanks.
Fri, 10/26/2012 - 20:59
#1
Re: Disable folder and file context menu
-In our custom connector, in the xml returned for getInit, for the Files ResourceType, I have acl set to 49.
-I set this up config.disableThumbnailSelection = 'true'; so as to disable thumbnail selections, since we currently don't have thumbnails.
Re: Disable folder and file context menu
var ckfinder = new CKFinder( config );
ckfinder.callback = function( api ) {
api.openMsgDialog( "", "Almost ready to go!" );
api.disableFolderContextMenuOption( 'CreateSubFolder', true );
api.disableFolderContextMenuOption( 'RenameFolder', true );
api.disableFolderContextMenuOption( 'DeleteFolder', true );
// Disable download function
api.disableFileContextMenuOption( 'downloadFile', false );
api.disableFileContextMenuOption( 'viewFile', false );
};