于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/在里面你可以...
版权声明:本文博主原创文章。博客,未经同意不得转载。
时间: 2024-10-14 03:13:29