手机
当前位置:查字典教程网 >编程开发 >网页编辑器 >配置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 常用函数

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

FCKeditor 图片上传进度条不动的解决方法

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

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

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

fckeditor 插件实例 制作步骤

Windows Live Writer 实现代码高亮

精品推荐
分类导航