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

phpcmsv9更改fckeditor编者ueditor编辑

时间:2015-09-19 09:37:27      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:

于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编辑

标签:

原文地址:http://www.cnblogs.com/lcchuguo/p/4820875.html

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