把ckfinder文件夹复制到 /statics/js/ 中
修改 /phpcms/libs/classes/form.class.php editor 函数
改
$str = '<script type="text/javascript" src="'.JS_PATH.'ckeditor/ckeditor.js"></script>';
为
$str = '<script type="text/javascript" src="'.JS_PATH.'ckeditor/ckeditor.js"></script><script type="text/javascript" src="'.JS_PATH.'ckfinder/ckfinder.js"></script>';
改
$str .= "CKEDITOR.replace( '$textareaid',{";
为
$str .= "var editor = CKEDITOR.replace( '$textareaid',{";
$str .= '</script>';
前面加
$str .= "CKFinder.setupCKEditor(editor, {basePath:'".JS_PATH."ckfinder/'});\r\n";
$baseUrl = '/uploadfile/';
baseUrl 是上传的目录,我设在这里,然后它会自动在里面再细分 images, flash, files
函数 function CheckAuthentication() 返回 true
ckfinder 下载:
ckfinder 教程:
http://docs.cksource.com/CKFinder_2.x
ckfinder 文档:
http://docs.cksource.com/ckfinder_2.x_api/symbols/CKFinder.html