I am struggling with integrating ckfinder into ckeditor. Any help greatly appreciated.
I wish to set ckfinder as a browser only for locating files on the server from the 'Image Properties / Image Info' dialog in ckeditor.
When I click 'Browse Server', CKFinder.html opens and displays a list of files, but no 'Browse' button.
How would I configure it to open as a file browser?
I call the CK instance from an include(contentEditor.js)
var config3 = { toolbar: [ { name: 'document', items : [ 'Source','Scayt' ] }, { name: 'clipboard', items : ['Paste','PasteText','PasteFromWord','-','Undo','Redo' ] }, { name: 'insert', items : [ 'Templates','Image','Table','HorizontalRule','SpecialChar', 'Strike','Subscript','Superscript' ] }, { name: 'basicstyles', items : [ 'Bold','Italic','Underline','-','RemoveFormat' ] }, { name: 'styles', items : [ 'Format'] }, { name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock','BidiLtr','BidiRtl', 'Link','Unlink','Anchor' ] } ], uiColor: "#dafb3f", height: "530px", resize_enabled: false, on: { change: CKonChange }, contentsCss : [ 'css/editorview.css' ], templates_replaceContent: false, filebrowserImageBrowseUrl: '/include/ckfinder/ckfinder.html?type=Images', filebrowserUploadUrl : '/include/classUpload/upload_CK.php' }; // Initialize the editor. $( 'textarea#nodeContents' ).ckeditor(config3); // nodeContents for city,state,country,resources editors
In ckfinder/config.php:
$baseUrl = 'http://www.globalroadwarrior.com/GRWGraphics/'; $baseDir = 'D:/Inetpub/grw/GRWGraphics'; $config['ResourceType'][] = Array( 'name' => 'Images', 'url' => $baseUrl, 'directory' => $baseDir, 'maxSize' => '8M', 'allowedExtensions' => 'gif,jpeg,jpg,png', 'deniedExtensions' => '');
Thanks!
++++++++++++++++++++++++++++++++
UPDATE
It works as is. The problem is that it was loading so slowly I thought it was broken.
How can I speed up the folder scanning? A typical main folder will have 200 subfolders, each with +/-150 images.
FYI, I modified ckeditor/config.js:
config.removePlugins = 'help,basket,flashupload'; config.readOnly = true; config.defaultViewType = 'list'; config.defaultDisplayFilesize_Images = false;
Thanks!