无法在Laravel中将KCfinder安装到CKEditor-404错误

时间:2018-10-26 12:09:35

标签: laravel ckeditor kcfinder

我正在使用laravel 5.2。 我有下一个文件ierarhy:

https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html

CKeditor很好, File structure

但是我在选择图像并提交“发送到服务器”后遇到了KCFinder问题,我收到了404错误: CKEditor' work

我有下一个代码:

kcfinder \ conf \ config.php:

$_CONFIG = array(
    'disabled' => false,
    'uploadURL' => "upload",
    'uploadDir' => "",
    'theme' => "default",

ckeditor \ config.js

CKEDITOR.editorConfig = function( config ) {
...
config.filebrowserBrowseUrl = 'public/assets/js/ckeditor/kcfinder/browse.php?opener=ckeditor&type=files';
        config.filebrowserImageBrowseUrl = 'public/assets/js/ckeditor/kcfinder/browse.php?opener=ckeditor&type=images';
        config.filebrowserFlashBrowseUrl = 'public/assets/js/ckeditor/kcfinder/browse.php?opener=ckeditor&type=flash';
        config.filebrowserUploadUrl = 'public/assets/js/ckeditor/kcfinder/upload.php?opener=ckeditor&type=files';
        config.filebrowserImageUploadUrl = 'public/assets/js/ckeditor/kcfinder/upload.php?opener=ckeditor&type=images';
        config.filebrowserFlashUploadUrl = 'public/assets/js/ckeditor/kcfinder/upload.php?opener=ckeditor&type=flash';
};

请帮助解决问题,谢谢!

0 个答案:

没有答案