您的位置:首页 > 模板插件 >>织梦dedecms把原来的编辑器换成百度编辑器Ueditor

织梦dedecms把原来的编辑器换成百度编辑器Ueditor

插件详情 安装说明 注意事项
插件简介

很多人都认为织梦自带的编辑器FCKeditor没有百度编辑器Ueditor好用,UEditor是由百度WEB前端研发部开发的所见即所得的开源富文本编辑器,具有轻量、可定制、用户体验优秀等特点。开源基于BSD协议,所有源代码在协议允许范围内可自由修改和使用。

安装说明

1.先下载插件,根据对应的编码选择上传到到include目录下
2.修改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;

}

}


如图:更换百度编辑器
3.然后在 系统—系统基本参数—核心设置—Html编辑器 ,那里,输入ueditor ,保存即可。记得清理缓存。
参考百度经验:https://jingyan.baidu.com/article/e9fb46e16623687520f76651.html

注意事项

安装插件前请先备份网站

    勤劳的站长

    作者分享
  • 分享模板:122套
  • 分享插件:14个
    联系作者
    注意财产安全,不轻易线下交易!