收藏文章 楼主
版块:AB模板网   类型:普通   作者:AB模板网   查看:6963   回复:0   获赞:0   时间:2021-10-15 12:09:19
1、下载uediter编辑器,解压上传目录uediter到根目录/includes/下   2、修改admin/includes/lib_main.php   /**   * 生成编辑器   * @param   string  input_name  输入框名称   * @param   string  input_value 输入框值   */   function create_html_editor($input_name, $input_value = '')   {       global $smarty;          $editor = new FCKeditor($input_name);       $editor->BasePath   = '../includes/fckeditor/';       $editor->ToolbarSet = 'Normal';       $editor->Width      = '100%';       $editor->Height     = '320';       $editor->Value      = $input_value;       $FCKeditor = $editor->CreateHtml();       $smarty->assign('FCKeditor', $FCKeditor);   }     修改为:     /**   * 生成编辑器   * @param   string  input_name  输入框名称   * @param   string  input_value 输入框值   */   function create_html_editor($input_name, $input_value = '')   {       global $smarty;      //www.zuimoban.com     $kindeditor="      <script id='editor' name='$input_name' type='text/plain' style='width:1024px;height:500px;'>$input_value</script>      <script type='text/javascript' charset='utf-8' src='../includes/ueditor/ueditor.config.js'></script>      <script type='text/javascript' charset='utf-8' src='../includes/ueditor/ueditor.all.min.js'> </script>      <script type='text/javascript' charset='utf-8' src='../includes/ueditor/lang/zh-cn/zh-cn.js'></script>      <script>          var ue = UE.getEditor('editor');          UE.getEditor('editor').focus();      </script>   <input type=\"submit\" value=\"提交\" />      ";  //zuimoban     $smarty->assign('FCKeditor', $kindeditor); }       3、修改admin/templates/pageheader.htm   将:     {insert_scripts files="../js/transport.js,common.js,../js/utils.js"}   替换为:       <script type="text/javascript" src="../includes/ueditor/fix_jquery/jquery.min.js" rel="stylesheet" /></script>   <script type="text/javascript" src="../includes/ueditor/fix_jquery/jquery.json-1.3.js" rel="stylesheet" /></script>   <script type="text/javascript" src="js/common.js" rel="stylesheet" /></script>   <script type="text/javascript" src="../includes/ueditor/fix_jquery/transport_json.js" rel="stylesheet" /></script>   {insert_scripts files="../js/utils.js"}     4、解决商品编辑中编辑器被重置,uedite无法保存内容的bug。   admin/templates/goods_info.htm   找到   document.forms['theForm'].reset();   修改为:   //document.forms['theForm'].reset();     下载:  http://pan.baidu.com/s/1hqGLeLm 密码: qjuw    文件中已含js冲突修改文件,另外已修改php/config.json中的图处保存路径,用户也可以自行修改!

网站模板:https://www.jxmseo.com/list-89-1.html

本文转载于网络,如有侵权请联系删除


全站外链: TEC传感器 | 猫掌外链
 
回复列表
默认   热门   正序   倒序

回复:ecshop编辑器fckeditor换百度ueditor编辑器教程

网站公告

近期本站被人为恶意注册及发布垃圾帖,每一个发帖都会经过审核,一经发现违法或垃圾帖的用户,帖子将被删除或封号,请大家共同维护互联网环境,共创美好互联网未来。

详细的发帖规则请阅读:

《小猪外链网发帖规则》

《小猪外链网最新金币规则》

注:本站严禁发布灰色违禁违法内容,如发现立刻永久封号,如开通会员的概不退款。

Powered by 小猪外链网 7.12.1

©2015 - 2024 小猪SEO外链平台

备案号:浙ICP备17015142号

免责申明:本网站内容由平台入驻会员撰写,除创始人账号外,其他观点仅代表作者本人,不代表小猪外链网立场。如果内容涉及侵犯其他公司、团体的利益、请联系小猪SEO外链网客服举证删除

您的IP:3.133.112.82,2024-05-19 01:57:12,Processed in 0.13148 second(s).

各位站长请准守小猪SEO外链网的发帖规则,文明理性发言

外链优化

用户名:

粉丝数:

签名:

资料 关注 好友 消息
分享
已有0次打赏