最新文章

点击排行

最新评论

当前位置:首页 > 网站制作 >
织梦dedecms整合百度编辑器(Ueditor1.4.3最新版)
发表日期:2014-06-18 09:08 来源:未知 浏览: 评论:

目前,织梦dedecms是使用最广的php开源程序,很多站长有习惯使用织梦默认的ckeditor编辑器,但是这个编辑器并没有我们想象重的那么强大!最近Killer整合了开源富文本Ueditor1_4_2最新版编辑器,现在把教程分享给大家!
  PS:网上也有很多教程,但是版本都比低,整合起来也比较麻烦,整合好后还有一些功能无法使用。

织梦dedecms整合百度编辑器详细步骤:
步骤一:先把自己网站备份一下(非常重要)!
步骤二:去官网下载最新版,这个就不用我教了把,注意要对应自己的网站编码,错了概不负责!
步骤三:解压后放到include目录下,文件名为ueditor。
步骤四:打开include下的inc文件夹内的inc_func_funcAdmin.php找到184行(else if($GLOBALS['cfg_html_editor']=='ckeditor'),贴入一下代码。

    else if($GLOBALS['cfg_html_editor']=='ueditor')
{ o l e o u.com
$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;

}

}
本文来自oleou
 
步骤五:进入后台-》系统-》系统基本参数-》核心设置-》将 Html编辑器的值改为 ueditor 保存!

OLEOU 2018
返回顶部