Log in or register to post comments
Last post
Disable folder and file context menu
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.
Re: Disable folder and file context menu
I achieved this by doing two things.
-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
Another way to do this:

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 );
};