我已经成功安装了TinyMCE和FileManager插件
https://github.com/2b3ez/FileManager4TinyMCE
我在从public/img
中的FileManager源代码访问我的public/js/rte/plugins/filemanager
文件夹时遇到了一些问题。我总是在我的路径中使用刀片,因此我不确定如何配置config.php
$base_url="http://localhost"; //url base of site if you want only relative url leave empty
$upload_dir = '/tinymce/source/'; // path from base_url to upload base dir
$current_path = '../../../../source/'; // relative path from filemanager folder to upload files folder
上面的剪辑是我需要用来指向我的img文件夹的东西。最好只在浴室内创建一个img文件夹,然后从中工作吗?我希望只为我的所有图片public/img
工作
答案 0 :(得分:0)
$base_url="http://localhost"; //url base of site if you want only relative url leave empty
$upload_dir = '/img/'; // path from base_url to upload base dir
$current_path = '../../../../img/'; // relative path from filemanager folder to upload files folder
答案 1 :(得分:0)
我最终将文件管理器文件夹放在公共文件夹中并在其中创建了一个名为uploads的文件夹,它似乎完全正常。
$base_url = 'http://' . $_SERVER['HTTP_HOST']; // DON'T TOUCH (base url
// (only domain) of site
// (without final "/")).
$upload_dir = '/local_search/public/uploads/'; // path from base_url to base
// of upload folder (with
// start and final "/")
$current_path = '../uploads/'; // relative path from
// filemanager folder to
// upload folder (with final
// "/")
答案 2 :(得分:0)
如果我是你,我将$upload_dir
更改为私人:
$upload_dir = '/local_search/PRIVATE/uploads/'; // path from base_url to base
// of upload folder (with
// start and final "/")
然后创建Assets
- 或File_Controller
来访问这些文件。
如果安全性不是问题,那么您当前的解决方案应该可以正常工作。