首先配置好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;
}

 

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

 

 

 

然后找到所有的的后台文章模板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">

 

既可以

 

相关文章:

  • 2022-12-23
  • 2021-08-15
  • 2022-12-23
  • 2021-08-22
  • 2022-12-23
  • 2022-02-09
  • 2021-12-03
猜你喜欢
  • 2022-02-09
  • 2021-12-21
  • 2021-10-12
  • 2021-06-05
  • 2021-10-19
  • 2022-12-23
相关资源
相似解决方案