1.解壓縮 ajaxfilemanagerRC5
2.複製 ajaxfilemanagerRC5 底下的 ajaxfilemanager 目錄到 fckeditor/editor/plugins
3.修改 fckeditor/fckconfig.js,將以下的設定修改為
FCKConfig.LinkBrowserURL = FCKConfig.BasePath + 'plugins/ajaxfilemanager/ajaxfilemanager.php?editor=fckeditor';
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + 'plugins/ajaxfilemanager/ajaxfilemanager.php?editor=fckeditor';
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + 'plugins/ajaxfilemanager/ajaxfilemanager.php?editor=fckeditor';
//移除上傳分頁標籤
FCKConfig.LinkUpload = false;
FCKConfig.ImageUpload = false;
FCKConfig.FlashUpload = false;
4.設定上傳目錄
修改 fckeditor/editor/plugins/ajaxfilemanager/inc/config.base.php
define('CONFIG_SYS_DEFAULT_PATH', '../../../../../upload/userfiles/'); //accept relative path only
define('CONFIG_SYS_ROOT_PATH', '../../../../../upload/userfiles/'); //accept relative path only
5.若要設定登入才能使用
修改 fckeditor/editor/plugins/ajaxfilemanager/inc/config.base.php
define('CONFIG_ACCESS_CONTROL_MODE', true);
EX:
define('CONFIG_ACCESS_CONTROL_MODE', !is_authenticated());
沒有留言:
張貼留言