我将这些代码行放在ckeditor
配置文件中。
// ...
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';
// ...
结果KCFinder
按钮(链接、上传、浏览、发送到服务器)在textarea
. 但是当我将图像发送到服务器时,它显示
Object not found!
The requested URL was not found on this server. The link on the
referring page seems to be wrong or outdated. Please inform the
author of that page about the error.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.18 (Win32) OpenSSL/1.0.2e PHP/7.0.1
在那个时候url
显示
http://localhost/kcfinder/browse.php?opener=ckeditor&type=images&
CKEditor=post&CKEditorFuncNum=1&langCode=en
我在浏览器中打开了一个新Tab
的,在 url 中添加了我的网站名称 (ewt)。它可以正确打开页面,我可以相应地从那里上传图像。
更改后的网址是:(我在 loacalhost 和 kcfinder 之间添加了 ewt)
http://localhost/ewt/kcfinder/browse.php?opener=ckeditor&type=images&
CKEditor=post&CKEditorFuncNum=1&langCode=en
如何在 ckeditor 的配置文件的 url 中添加 ewt?我试过了
{{url()}}, base_url(), url()
等但不工作。我需要帮助...