织梦默认的编辑器体验不是很好,这里可以尝试使用百度编辑器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保存无反应,请看:《百度编辑器无法保存修改内容的解决方法》
赞赏微信赞赏
支付宝赞赏