织梦安装百度编辑器UEditor

版权声明:知末随未 https://blog.csdn.net/mo3408/article/details/89946820

1.下载地址:https://ueditor.baidu.com/website/download.html

2.解压到include里更换名字ueditor

找到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;

}

}

找到后台系统----核心设置

找到data里的config.cache.inc.php,改成:

$cfg_html_editor = 'ueditor';

猜你喜欢

转载自blog.csdn.net/mo3408/article/details/89946820
今日推荐