Copyright @ 2015-2024 织梦园 版权所有 Power by DedeCms
鲁ICP备15039853号-2

模板标签 TAG标签 网站地图 XML地图 今日更新 返回顶部
搜索“百度ueditor”去官方下载编辑器源码
在include目录下新建一个“ueditor”文件夹,讲刚才下载的文件解压后上传至此目录。
找到include/inc/下的inc_func_funcAdmin.php文件,在判断编辑器部分,如下
if($GLOBALS['cfg_html_editor']=='fck') |
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”,然后保存即可。