1.应该修改editorfilemanageruploadphpeditorfilemanagerbrowserdefaultconnectorsphpconfig.php 中的$Config['Enabled'] = true ;
2.应该修改editorfilemanageruploadphpeditorfilemanageruploadphpconfig.php 中的$Config['Enabled'] = true ;
3.应该修改editorfilemanageruploadphp下util.php里面的getrootpath函数
复制代码 代码如下:
function GetRootPath() { $sRealPath = realpath( '.' ) ; $sRealPath=str_replace('','/',$sRealPath); $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; return $sRealPath.'/'; }
还有editorfilemanagerbrowserdefaultconnectorsphp下io.php里面的getrootpath函数
复制代码 代码如下:
function GetRootPath() { $sRealPath = realpath( '.' ) ; $sRealPath=str_replace('','/',$sRealPath); $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; $sRealPath = substr( $sRealPath, 0, strrpos( $sRealPath, '/' ) ) ; return $sRealPath.'/'; }
然后修改editorfilemanagerbrowserdefaultconnectorsphp里面config.php文件的$Config['UserFilesPath']变量以及editorfilemanageruploadphp下config.php里面的$Config['UserFilesPath']变量就行了。不过图片在编辑器里面不能看见,但是显示成内容的时候没有问题
【配置fckeditor 实现图片的上传】相关文章:
★ fckeditor在php中的用法(添加于修改写成了函数)
★ dedecms ckeditor编辑器添加链接默认新窗口打开的修改方法
★ 整合ckeditor+ckfinder,解决上传文件路径问题
★ 百度ueditor组件上传图片后如何设置img里的alt属性