KindEditor编辑框的内容上传
来源:互联网 发布:黑马校对软件好用吗 编辑:程序博客网 时间:2024/05/18 00:39
参考KindEditor的官方提供文档:
1.界面
<textarea id="content" name="content" style="width: 185px; height: 100px;">${content}</textarea>
2.javascript,可以根据自己的项目进行修改cssPath、uploadJson、fileManagerJson的路径。
<script type="text/javascript">
$(function() {
var editor3 = KindEditor.create('textarea[name="content"]', {
resizeType : 1,
allowPreviewEmoticons : false,
allowImageRemote : false,
filterMode : false,
cssPath : '${ctx}/rel/js/kindeditor/plugins/code/prettify.css',
uploadJson : '${ctx}/rel/js/kindeditor/jsp/upload_json.jsp',
fileManagerJson : '${ctx}/rel/js/kindeditor/jsp/file_manager_json.jsp',
allowFileManager : true,
afterBlur : function() {
this.sync();
},
items : [
'source','fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
'insertunorderedlist', 'image', 'multiimage','link','unlink']
});
});
</script>
3.copy lib文件夹中带的jar包到项目中
4. 按需求修改上面的upload_json.jsp和file_manager_json.jsp这两个文件的Java脚本代码即可。(也可以把其中的Java代码使用到java文件中使用)
- KindEditor编辑框的内容上传
- struts + kindeditor + base64 将编辑的内容保存到本地
- 关于kindEditor获取编辑内容dom节点
- KindEditor编辑
- 显示编辑框的内容
- kindeditor上图片上传的实现
- KindEditor的上传图片CGI(JSP版)
- kindeditor上传本地图片的问题
- Struts2+KindEditor的图片上传问题处理
- 解决kindeditor上传图片、文件的错误
- KindEditor图片上传路径URL的处理
- KindEditor编辑器的图片上传问题
- 修改kindeditor上传文件的路径
- kindeditor的上传图片简单代码
- 解决kindeditor上传图片、文件的错误
- 解决kindeditor上传图片、文件的错误。
- kindeditor的上传图片简单代码
- 修改kindeditor上传文件的路径
- String 类
- redis -- python操作连接redis
- 利用phantomjs实现自动登录
- QT5.0以上版本 incomingConnection不能被调用的解决方案
- CameraPath的使用
- KindEditor编辑框的内容上传
- Dialog和PopWindow使用小结
- 人脸识别主要算法原理
- 实现类似新浪微博帖子显示——话题、@好友、表情解析工具类
- Android学习--SwipeRefreshLayout
- Mac升级到macOS Sierra 10.12后SVN管理软件Conerstone破解版安装后提示“已损坏”问题
- linux内核中操作文件的方法--使用get_fs()和set_fs(KERNEL_DS)
- 欢迎使用CSDN-markdown编辑器
- jquery的ajax跨域交互数据