织梦dedecsm5.7整合ueditor百度编辑器最新1.4.3方法

步骤一:先把自己网站备份一下(非常重要)!

步骤二:去官网下载最新版的ueditor(这样的目前是最新1.4.3),注意要对应自己的网站编码!

步骤三:解压后放到include目录下,文件名改为ueditor

步骤四:打开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=http://www.dede58.com/"/include/ueditor/ueditor.config.js"></script>

<script type="text/javascript" charset="utf-8" src=http://www.dede58.com/"/include/ueditor/ueditor.all.js"></script>

<link rel="stylesheet" type="text/css" href=http://www.dede58.com/"/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;

}

 

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/e6a880b9afefa69b093056ce459cda8e.html