在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>
phpcmsv9修改fckeditor编辑器为ueditor编辑器
原文地址:http://blog.csdn.net/hearain528/article/details/40431833