dede文章列表使用两个编辑器

首先配置好DEDE使用可以使用百度编辑器

 

 

 

然后找到

\include\inc\inc_fun_funAdmin.php文件,找到else if($GLOBALS['cfg_html_editor']=='ueditor')

然后把下面的文件修改

 

$fvalue = $fvalue=='' ? '<p></p>' : $fvalue;
$code = '<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;
}

 

 

 

 

然后找到所有的的后台文章模板archives_add.htm、archives_edit.htm、article_edit.htm、article_add.htm、catalog_add.htm、catalog_edit.htm,head部分添加

<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">

 

既可以

 

posted @ 2018-04-12 17:22  Abner3721  阅读(250)  评论(0编辑  收藏  举报