Created
April 10, 2019 04:51
-
-
Save Guley/2b1f2b4b992ce5b7e20124d5f9332664 to your computer and use it in GitHub Desktop.
Configuration files to upload images over ckeditor using ckfinder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*CkEditor config.js */ | |
CKEDITOR.replace( "short_desc", { | |
filebrowserBrowseUrl: 'http://example.com/ckfinder/ckfinder.html', | |
filebrowserImageBrowseUrl: 'http://example.com/ckfinder/ckfinder.html?Type=Images', | |
filebrowserUploadUrl: 'http://example.com/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Files', | |
filebrowserImageUploadUrl: 'http://example.com/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Images', | |
filebrowserWindowWidth: '1000', | |
filebrowserWindowHeight: '700' | |
}); | |
/*CkFinder Config.js*/ | |
$config['backends'][] = array( | |
'name' => 'default', | |
'adapter' => 'local', | |
'baseUrl' => 'http://example.com/assets/ckimages/', | |
'root' =>'/var/www/html/xxxx/assets/ckimages/', // Can be used to explicitly set the CKFinder user files directory. | |
'chmodFiles' => 0777, | |
'chmodFolders' => 0755, | |
'filesystemEncoding' => 'UTF-8', | |
); | |
$config['authentication'] = function () { | |
return true; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment