如下就是使用百度编辑器的后台

只需要如下的简单修改就可以完成。
先去百度编辑器的官网下载一个版本:
http://ueditor.baidu.com/website/download.html
下载完后直接改名称为ueditor到include

然后是修改dedecm的文件即可
打开include下的inc文件夹内的inc_func_funcAdmin.php找到184行
else if($GLOBALS['cfg_html_editor']=='ueditor')
{
$fvalue = $fvalue=='' ? '<p></p>' : $fvalue;
$code = '<script type="text/javascript" charset="utf-8"
src="/include/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8"
src="/include/ueditor/ueditor.all.js"></script>
<link rel="stylesheet" type="text/css"
href="/include/ueditor/themes/default/css/ueditor.css"/>
<textarea name="'.$fname.'" id="'.$fname.'"
style="width:100%;">'.$fvalue.'</textarea>
<script type="text/javascript">var ue = new
baidu.editor.ui.Editor();ue.render("'.$fname.'");</script>';
if($gtype=="print")
{
echo $code;
}
else
{
return $code;
}
}进入网站后台-->系统-->系统基本参数-->核心设置-->将 Html编辑器的值改为 ueditor ,然后保存。

如在修改时候发现代码高亮转义后不完整 可以加入如下代码:
$fvalue=htmlspecialchars($fvalue);
加在
else if($GLOBALS['cfg_html_editor']=='ueditor')
{下面即可
如果在前台需要显示高亮 在模板加入如下代码
<link href="/include/ueditor/third-party/SyntaxHighlighter/shCoreDefault.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="/include/ueditor/third-party/SyntaxHighlighter/shCore.js"></script> <script type="text/javascript"> SyntaxHighlighter.all(); </script>
改成自己的编辑器地址即可
关键字词:

