织梦安装百度编辑器ueditor教程

微信扫一扫,分享到朋友圈

织梦安装百度编辑器ueditor教程

织梦默认的编辑器体验不是很好,这里可以尝试使用百度编辑器ueditor。

1.首先下载百度编辑器ueditor。

2.将压缩包解压到include里更换名字ueditor。

3.找到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;
 
}
 
}

4.进入后台:后台系统—-核心设置,将html编辑器改为ueditor并保存。

5.查看data里的config.cache.inc.php文件,看是否有以下代码:

$cfg_html_editor = 'ueditor';

如没有,则改为上述代码。

6.刷新后台,清空缓存,后台更换成功。

如果UEditor保存无反应,请看:《百度编辑器无法保存修改内容的解决方法

赞赏

微信赞赏支付宝赞赏

我还没有学会写个人说明!
上一篇

织梦添加PDF文件点击下载功能

下一篇

织梦后台更新文档HTML没反应解决教程

你也可能喜欢

评论已经被关闭。

插入图片

排行榜

    抱歉,30天内未发布文章!

排行榜

    抱歉,30天内未发布文章!
返回顶部