织梦dedecsm5.7整合ueditor百度编辑器新1.4.3方法详细步骤
织梦dedecsm5.7整合ueditor百度编辑器新1.4.3方法详细步骤
步骤1:先把自己网站备份一下(非常重要)!
步骤2:百度搜索“百度ueditor编辑器”,然后点击进入官网,找到下载页面。找到我们想要的编辑器的版本,这点相信不要我多说了。笔者就以新版的ueditor为例(这样的目前是新1.4.3),注意要对应自己的网站编码!
步骤3:解压后放到include目录下,文件名改为ueditor 如下图:
步骤4:打开include下的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;
}
}
如下图:
步骤5:进入织梦网站后台-->系统-->系统基本参数-->核心设置-->将Html编辑器的值改为 ueditor ,然后保存。至此,编辑器已经整合成功!(下图所示)
卖贝商城更多商品介绍:通栏广告投放价格 出国留学网软文价格 瑞丽网生活首页新闻源推广