ecshop将编辑器更换为kindeditor
来源:互联网 发布:h3c数据中心网络认证 编辑:程序博客网 时间:2024/05/24 07:21
由于ecshop原版fckeditor编辑器过于陈旧,就有想法要更新编辑器,最开始想到的是ueditor,但是最后无法获取编辑器内的值,最后放弃.然后就转至kindeditor.
方法也是在网上搜索到的,并测试正常.但是最后就找不到原作者是谁.
具体的步骤如下:
1.下载kindeditor.
2.解压到includes文件夹下.
3.删除无用文件夹.asp/asp.net/jsp/examples
4.admin\goods.php 416行左右
create_html_editor('goods_desc', $goods['goods_desc']);这个调用方法注释. 加入
$FCKeditor = create_html_kindeditor('goods_desc', $goods['goods_desc'], 'theForm'); $smarty->assign('FCKeditor', $FCKeditor);
5.admin\includes\lib_main.php
加入
function create_html_kindeditor($input_name, $input_value = '', $form_name = ''){ global $smarty; $kindeditor="<script charset='utf-8' src='../includes/kindeditor/kindeditor-min.js'></script> <script> var editor; KindEditor.ready(function(K) { editor = K.create('textarea[name=\"$input_name\"]', { allowFileManager : true, width : '700px', height: '300px', resizeType: 0 //固定宽高 }); }); </script> <textarea id=\"$input_name\" name=\"$input_name\" style='width:700px;height:300px;'>$input_value</textarea> "; return $kindeditor;}
6.admin\templates\good_info.htm
大约429行 提交按钮 type更换才submit
7.大功告成
0 0
- ecshop将编辑器更换为kindeditor
- Ecshop 编辑器 FCKeditor更换为Kindeditor 完整替换
- EMLOG更换KindEditor编辑器为CKEditor 4.4.5
- ecshop更换升级FCKeditor编辑器到Kindeditor,支持图片批量上传,和百度地图添加
- ecshop彻底编辑器为kindeditor实现在多张图片上传(个人修正)
- ecshop编辑器kindeditor上传图片添加水印插件
- ecshop替换编辑器为ueditor
- 使用kindeditor来替换ecshop的fckeditor编辑器,让ecshop可以批量上传图片
- 使用kindeditor来替换ecshop的fckeditor编辑器,让ecshop可以批量上传图片
- KindEditor 自定义插件:实现在内容编辑器中选中任意一张图片将其设置为文章封面缩略图
- 如何将linux系统更换为XP
- Kindeditor 中判断该编辑器中的内容是否为空:
- js提交表单kindeditor编辑器textarea为空解决办法
- kindeditor 编辑器手机访问默认为HTML编辑
- js提交表单kindeditor编辑器textarea为空解决办法
- 提交表单kindeditor编辑器textarea为空解决办法
- Ecshop后台fckeditor改为kindeditor
- ecshop更换模板名报c.cat_id=".$cid为空错误解决。
- Android中怎么破解游戏之修改金币数
- 南阳理工OJ_题目456 邮票分你一半
- 关于C++ error C2662 cannot convert 'this' pointer from...
- 高手速成android开源项目【tool篇】
- Dom解析XMl文档
- ecshop将编辑器更换为kindeditor
- abap中内表和表的关联操作
- SEO原创文章怎么写
- JAVA环境变量JAVA_HOME、CLASSPATH、PATH
- 高手速成android开源项目【View篇】
- 一篇贴子让我如此悲哀
- c++读写文件
- TI C66x DSP 系统events及其应用 - 5.5(ISR调用)
- 现在编程就业前景好不好