码迷,mamicode.com
首页 > Web开发 > 详细

phpcmsv9修改fckeditor编辑器为ueditor编辑器

时间:2014-10-24 22:24:19      阅读:318      评论:0      收藏:0      [点我收藏+]

标签:编辑器   phpcmsv9   ckeditor   

在phpcmsv9的目录中找到phpcms/libs/classes/form.class.php文件

找到这几行代码

<span style="font-size:18px;">// $str = '<script type="text/javascript" src="'.JS_PATH.'ckeditor/ckeditor.js"></script>';
			// define('EDITOR_INIT', 1);   }</span>
将其替换为
<span style="font-size:18px;">$str = '<script type="text/javascript" src="'.JS_PATH.'ueditor/ueditor.config.js"></script>';
			$str .= '<script type="text/javascript" src="'.JS_PATH.'ueditor/ueditor.all.js"></script>';
        $str .= '<script type="text/javascript" src="'.JS_PATH.'ueditor/ueditor.parse.js"></script>';
        $str .= '<link rel="stylesheet" href="'.JS_PATH.'ueditor/themes/default/css/ueditor.css"/>';
        define('EDITOR_INIT', 1);
    }
        $str .= "<script type=\"text/javascript\">\r\n";
        $str .= "var editor = UE.getEditor('$textareaid');";
        $str .= '</script>';</span>

然后将在ueditor官网下载ueditor将其放置在phpcmsv9根目录下的statics/js/里面即可...

phpcmsv9修改fckeditor编辑器为ueditor编辑器

标签:编辑器   phpcmsv9   ckeditor   

原文地址:http://blog.csdn.net/hearain528/article/details/40431833

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!