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.lyecs.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();  
 
 
 
文件中已含js冲突修改文件,另外已修改php/config.json中的图处保存路径,用户也可以自行修改!

ecshop编辑器fckeditor换百度ueditor编辑器教程的更多相关文章

  1. WordPress中默认文本编辑器替换成百度UEditor编辑器

    1.下载 下载地址: http://pan.baidu.com/s/1geNk19L 2.解压放到plugins目录下 3.插件启用

  2. 百度UEditor编辑器使用教程与使用方法

    我们在做网站的时候,网站后台系统一般都会用到web编辑器,今天笔者就给大家推荐一款百度UEditor编辑器.关于这款百度UEditor编辑器官网上也有简单的教程,不过看着比较费劲,今天笔者就跟大家分享 ...

  3. 解决百度Ueditor编辑器表格不显示边框问题

    一.主要内容 CMS使用百度Ueditor编辑器中的表格功能,在编辑模式下可以正常显示边框,而文章发布之后表格不能显示边框.本博文经过查阅相关资料,最终解决了该问题. 二.使用平台 1. dedecm ...

  4. 百度UEditor编辑器关闭抓取远程图片功能(默认开启)

    这个坑娘的功能,开始时居然不知道如何触发,以为有个按钮,点击一下触发,翻阅了文档,没有发现,然后再网络上看到原来是复制粘贴非白名单内的图片到编辑框时触发,坑娘啊............... 问题又来 ...

  5. 在linux下使用百度ueditor编辑器上传图片

    百度ueditor编辑器虽然强大,但是也有不足的地方.如果对ueditor流程不是很熟悉可以说走的弯路比较多,费力不讨好.下面呢,就是要解决ueditor遇到的问题. 用ueditor上传图片遇到的问 ...

  6. 我是如何一步步编码完成万仓网ERP系统的(六)产品库设计 2.百度Ueditor编辑器

    https://www.cnblogs.com/smh188/p/11533668.html(我是如何一步步编码完成万仓网ERP系统的(一)系统架构) https://www.cnblogs.com/ ...

  7. DEDECMS:安装百度UEDITOR编辑器

    第一步:下载相对应编辑器的版本 首先,去百度搜索"百度ueditor编辑器",然后点击进入官网,找到下载页面.找到我们想要的编辑器的版本,看自己网站的编码是UTF-8还是GBK,下 ...

  8. 百度ueditor编辑器注入漏洞修补查杀程序

    百度ueditor编辑器注入查杀程序,用于对百度ueditor的漏洞补丁进行查杀,使用时需要保证本地正确部署了.net 4.0服务. 百度ueditor编辑器是目前网上比较流行的一个网站编辑器,但由于 ...

  9. ThinkPHP整合百度Ueditor图文教程

    ThinkPHP整合百度Ueditor图文教程 ThinkPHP整合百度Ueditor,基于黄永成老师的视频说明的申明:最好大家都能写绝对路径的都写好绝对路径比如:window.UEDITOR_HOM ...

随机推荐

  1. 三层交换配置VLAN+DHCP+ACL

    使用思科模拟软件Cisco Packet Tracer Student,软件功能有限,只能架设简单的网络架构,适合初学者使用.

  2. iOS 重写UITableViewCell之动态获取label文字的宽度进行布局

    #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @pr ...

  3. ios_图片放大的两种方式transform和frame

    frame改变x值y值的方式放大图片,是从左上开始放大. frame改变控件宽高的方式放大图片,是从中心开始放大. 原头像大小 用frame改变宽高 transform方式放大图片,从中心开始放大

  4. nginx:配置详细说明

    一.fastcgi param 详情: fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;#脚本文件请求的路径 fast ...

  5. linux: centos设置ip以及连接外网

    注明:我使用的的使centos 7,所有文件名是ifcfg-enp0s3, 一. 设置虚拟机中linux的ip,使本地能连通虚拟机的linux系统 1>.进入本地windows的cmd,输入ip ...

  6. 为什么要在block用weak self

    block会给内部所有的对象引用计数加一,这一方面会带来潜在的retain cycle,不过我们可以通过Weak Self的手段解决.另一方面比较重要就是,它会延长对象的生命周期. 在block前面写 ...

  7. PostgreSQL Configuration – managing scary settings

    When it comes to highly available database servers and configuration, a very important aspect is whe ...

  8. Leetcode: Data Stream as Disjoint Intervals && Summary of TreeMap

    Given a data stream input of non-negative integers a1, a2, ..., an, ..., summarize the numbers seen ...

  9. Mac 显示和隐藏 隐藏文件

    控制台运行: //显示 defaults write com.apple.finder AppleShowAllFiles -bool true //隐藏 defaults write com.app ...

  10. JSP 中 forward 和 redirect 的区别_2014.12.31

    重定向,只能访问工程下(WebRoot文件夹)的页面,不能访问到内部(WEB_INF文件夹)的页面 1.从地址栏显示来说:forward浏览器显示路径不变,redirect浏览器显示路径改变forwa ...