I have the ckfinder plugged in and its working perfectly with permissions and everything the way I hoped it would, however in the ckeditor when you click the image plugin for example there's 4 tabs listed:
Image info, link, upload, and advance.
I want to disable the upload tab.
Fri, 02/26/2010 - 15:18
#1
Re: disable the upload tab
Is
filebrowserImageUploadUrl : 'ckfinder/core/connector/asp/connector.asp?command=QuickUpload&type=Images',
filebrowserFlashUploadUrl : 'ckfinder/core/connector/asp/connector.asp?command=QuickUpload&type=Flash',
Thanks.
Re: disable the upload tab
This code will remove the upload tab in image and link dialogs:
Re: disable the upload tab
I've used the code provided by alfonsomi, and it works perfectly for the Image dialog, but not for the Link dialog. Has anyone else come across this? It's very frustrating.
Any help would be much appreciated.
Re: disable the upload tab
CKEDITOR.on( 'dialogDefinition', function( ev ) {
// Take the dialog name and its definition from the event data
var dialogName = ev.data.name;
var dialogDefinition = ev.data.definition;
if ( dialogName == 'image' || dialogName == 'link' ) {
// Remove upload tab
dialogDefinition.removeContents('Upload');
dialogDefinition.removeContents('upload');
}
});
looks like the image uses Upload and link uses upload - CASE SENSITIVE
Re: disable the upload tab
Currently there's a simpler way using the removeDialogTabs option
so you can set in your config:
If you have to find the name of other dialogs or tabs, use the DevTools plugin (available in the _samples folder)
disable the upload tab
I'm using CKEditor for Drupal and trying to remove the Upload tab but keep 'Browse Server' functionality (...want users to use file upload functionality in CKFinder).
I've tried setting the follow in my config.js and it's not working (ignored at runtime):
Is the code below placed in the config.js file?
CKEDITOR.on( 'dialogDefinition', function( ev ) {
// Take the dialog name and its definition from the event data
var dialogName = ev.data.name;
var dialogDefinition = ev.data.definition;
if ( dialogName == 'image' || dialogName == 'link' ) {
// Remove upload tab
dialogDefinition.removeContents('Upload');
dialogDefinition.removeContents('upload');
}
});
config.removeDialogTabs =
Try adding that to your config.js in ckeditor instead of ckfinder. That worked well for me, though counterintuitive.