手机
当前位置:查字典教程网 >编程开发 >网页编辑器 >配置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编辑器内容长度限制统计实现方法

Windows Live Writer 实现代码高亮

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

FCKeditor2.3 For PHP 详细整理的使用参考

网页编辑器FCKeditor 2.6.4精简配置方法

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

关于CKeditor的非主流个性应用的设置

百度ueditor组件上传图片后如何设置img里的alt属性

CKEditor 取消转义的两种方法

Ewebeditor 文件上传问题

精品推荐
分类导航