没有合适的资源?快使用搜索试试~ 我知道了~
kindeditor4网页编辑器使用说明
需积分: 1 1 下载量 118 浏览量
2016-11-08
16:45:21
上传
评论
收藏 1KB TXT 举报
温馨提示
试读
2页
kindeditor4.1.11 网页编辑器使用说明:
资源推荐
资源详情
资源评论
kindeditor4.1.11 网页编辑器使用说明:
1、网页头部引用:
<js href="__PUBLIC__/admin/js/kindeditor/kindeditor.js"/>
<js href="__PUBLIC__/admin/js/kindeditor/lang/zh-CN.js"/>
<script type="text/javascript">
KindEditor.ready(function(K){
K.create('textarea[name="post_con"]', { // post_con 是表单中的 textarea 文本域 name
themeType: 'simple',//模板
resizeType: 1,//2可拖宽和高,1只高度,0时不能拖动。
uploadJson: '__PUBLIC__/admin/js/kindeditor/php/upload_json.php',
fileManagerJson: '__PUBLIC__/admin/js/kindeditor/php/file_manager_json.php',
allowFileManager: true, //true时显示浏览远程服务器按钮。
//下面这行代码就是关键的所在,当失去焦点时执行 this.sync();
afterBlur: function(){this.sync();}
});
});
</script>
2、修改upload_json.php 和 file_manager_json.php文件中的图片上传路径和保存路径:
//根目录路径,可以指定绝对路径,比如 /var/www/attached/
//$root_path = $php_path . '../attached/';
$root_path = $php_path . '../../../../Uploads/';
//根目录URL,可以指定绝对路径,比如 http://www.yoursite.com/attached/
//$root_url = $php_url . '../attached/';
资源评论
qq_36650040
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功