百分百源码网-让建站变得如此简单! 登录 注册 签到领金币!

主页 | 如何升级VIP | TAG标签

当前位置: 主页>网站教程>Ecshop教程> ecshop编辑器fckeditor换百度ueditor编辑器教程
分享文章到:

ecshop编辑器fckeditor换百度ueditor编辑器教程

发布时间:12/03 来源: 浏览: 关键词:
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中的图处保存路径,用户也可以自行修改!
打赏

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

百分百源码网 建议打赏1~10元,土豪随意,感谢您的阅读!

相关文章

共有7人阅读,期待你的评论!发表评论
昵称: 网址: 验证码: 点击我更换图片
最新评论

本文标签

广告赞助

能出一分力是一分吧!

订阅获得更多模板

本文标签

广告赞助

订阅获得更多模板