Warning: Undefined array key "night" in /www/wwwroot/dhaomu.com/wp-content/themes/b2/header.php on line 18

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

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

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.dhaomu.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=\"提交\" /> 
    ";  //www.dhaomu.com
    $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();  
温馨提示:
1.本站大部分内容均收集于网络!若内容若侵犯到您的权益,请发送邮件至:duhaomu@163.com,我们将第一时间处理!
2.资源所需价格并非资源售卖价格,是收集、整理、编辑详情以及本站运营的适当补贴,并且本站不提供任何免费技术支持。
3.所有资源仅限于参考和学习,版权归原作者所有,更多请阅读网站声明

给TA赞赏
共{{data.count}}人
人已赞赏
编程技巧

PbootCMS网站模板如何调用时间格式大全

2021-11-16 0:00:00

编程技巧

织梦后台文章列表中显示自定义字段方法

2021-11-23 0:00:00

0 条回复 A文章作者 M管理员

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914

Warning: Trying to access array offset on value of type null in /www/wwwroot/dhaomu.com/wp-content/themes/b2/functions.php on line 3914
----《》
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索