手机
当前位置:查字典教程网 >编程开发 >网页编辑器 >配置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 图片上传进度条不动的解决方法

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

FCKEditor 表单提交时运行的代码

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

fckeditor php上传文件重命名的设置

通过Fckeditor把图片上传到独立图片服务器的方法

Ewebeditor 文件上传问题

FCKEditor+jQuery+PHP实现分页代码

fckeditor在php中的用法(添加于修改写成了函数)

精品推荐
分类导航