织梦dede编辑器替换成百度编辑器方法

到官网http://ueditor.baidu.com/website/download.html下载编辑器命名ueditor文件夹上传到include目录下

修改inc_func_funcAdmin.php文件;

打开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;

}

}

修改配置。请登录织梦后台修改相应的设置;
进入织梦网站后台-->系统-->系统基本参数-->核心设置-->将Html编辑器的值改为 ueditor ,然后保存。至此,编辑器已经整合成功!

THE END

本站部分文章搜集整理于互联网或者网友提供,如有侵权请联系站长

如若转载,请注明出处:https://www.htmlbk.com/dedecms/331.html

温馨提示:该文档最后一次修改时间为2019-11-16 14:03:29,请注意相关的内容是否还可用!