我已经在/ public目录中安装了ckeditor和kcfinder。 尽管已添加到/public/ckeditor/config.js:
config.filebrowserBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&type=files';
config.filebrowserImageBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&type=images';
config.filebrowserFlashBrowseUrl = '/kcfinder/browse.php?opener=ckeditor&type=flash';
config.filebrowserUploadUrl = '/kcfinder/upload.php?opener=ckeditor&type=files';
config.filebrowserImageUploadUrl = '/kcfinder/upload.php?opener=ckeditor&type=images';
config.filebrowserFlashUploadUrl = '/kcfinder/upload.php?opener=ckeditor&type=flash';
并在/public/kcfinder/config.php中启用了KCFinder
'disabled' => false,
'uploadURL' => "/uploads",
// The uploads directory is inside /public
尝试将图像上传到CKEditor时出错。
HTTP error occurred during file upload (404: File not found).
我注意到控制台中有一些错误
[CKEDITOR] Error code: cloudservices-no-token-url.
[CKEDITOR] Error code: cloudservices-no-upload-url.