织梦dedecsmV5.7整合ueditor百度编辑器最新1.4.3方法详细步骤:
先把自己网站备份一下(非常重要)!
去官网下载最新版的ueditor(这样的目前是最新1.4.3),注意要对应自己的网站编码!
解压后放到include目录下,文件名改为ueditor
打开/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即可!