简体   繁体   English

CKfinder&Codeigniter浏览服务器

[英]CKfinder & Codeigniter browse server

I have integrated CKEditor/CKFinder into my codeigniter project. 我已经将CKEditor / CKFinder集成到了我的codeigniter项目中。

When I click on the image icon, I get the popup. 当我单击图像图标时,我会弹出。 Then when i click on 'browse server' another popup windoe opens containing the original web page. 然后,当我单击“浏览服务器”时,将打开另一个弹出窗口,其中包含原始网页。 I need this to open a specified folder where I will be saving images to. 我需要打开指定的文件夹来保存图像。

I tried editing $editorObj->config['filebrowserBrowseUrl'] in ckfinder_php5.php but that did not work. 我尝试在ckfinder_php5.php中编辑$editorObj->config['filebrowserBrowseUrl'] ,但这没有用。 I tried editing $baseUrl and $baseDir in js/ckfinder/config.php but that did not work either. 我尝试在js / ckfinder / config.php中编辑$baseUrl $baseDir$baseDir ,但这也不起作用。

What do I need to edit? 我需要编辑什么?

I figured it out, thanks to this . 多亏了这一点 ,我才知道了。

In the controller where you are using ckeditor, find $path = '../js/ckfinder' Ensure this is correct, relative to the URL where ckeditor will be used. 在使用ckeditor的控制器中,找到$path = '../js/ckfinder'确保相对于使用ckeditor的URL正确。 In my case, I needed to add a folder name, o it looks like this: 就我而言,我需要添加一个文件夹名称,它看起来像这样:
$path = '/folder/js/ckfinder'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM