織夢(mèng)dedecsmV5.7整合ueditor百度編輯器最新1.4.3方法詳細(xì)步驟:
先把自己網(wǎng)站備份一下(非常重要)!
去官網(wǎng)下載最新版的ueditor(這樣的目前是最新1.4.3),注意要對(duì)應(yīng)自己的網(wǎng)站編碼!
解壓后放到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;
}
}
進(jìn)入后臺(tái)-系統(tǒng)-系統(tǒng)基本參數(shù)-核心設(shè)置-將 Html編輯器的值改為ueditor即可!