手机
当前位置:查字典教程网 >编程开发 >网页编辑器 >配置fckeditor 实现图片的上传
配置fckeditor 实现图片的上传
摘要:1.应该修改editorfilemanageruploadphpeditorfilemanagerbrowserdefaultconnect...

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的文件上传功能步骤

fckeditor 常用函数

UEditor编辑文章出现多余空行问题的解决办法

FCKeditor 编辑器插入代码功能实现步骤

为ckeditor编辑器加上传图片的功能

Ewebeditor 文件上传问题

FCKeditor 网页在线编辑器的使用方法

FckEditor 上传图片后图片变小了!问题解决

jsp fckeditor 上传中文图片乱码问题的解决方法

CKEditor 取消转义的两种方法

精品推荐
分类导航