找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 100|回复: 0

[cms教程] ecshop编辑器fckeditor换百度ueditor编辑器教程

[复制链接]

该用户从未签到

发表于 2015-6-7 09:29:06 | 显示全部楼层 |阅读模式

您需要 登录 才可以下载或查看,没有账号?立即注册

×
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="
             
             
             
             
             
         [i,
            ";  //zuimoban
            $smarty->assign('FCKeditor', $kindeditor);
        }  
         
         
        3、修改admin/templates/pageheader.htm
         
        将:
         
         
        {insert_scripts files="../js/transport.js,common.js,../js/utils.js"}  
        替换为:
         
         
         
          
          
          
          
        {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中的图处保存路径,用户也可以自行修改!
回复

使用道具 举报

网站地图|页面地图|文字地图|Archiver|手机版|小黑屋|找资源 |网站地图

GMT+8, 2024-6-26 18:07

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表