基本信息
源码名称:kindeditor4.1.11编辑器
源码大小:0.79M
文件格式:.zip
开发语言:js
更新时间:2019-09-05
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <% request.setCharacterEncoding("UTF-8"); String htmlData = request.getParameter("content1") != null ? request.getParameter("content1") : ""; %> <!doctype html> <html> <head> <meta charset="utf-8" /> <title>KindEditor JSP</title> <link rel="stylesheet" href="../themes/default/default.css" /> <link rel="stylesheet" href="../plugins/code/prettify.css" /> <script charset="utf-8" src="../kindeditor-all.js"></script> <script charset="utf-8" src="../lang/zh-CN.js"></script> <script charset="utf-8" src="../plugins/code/prettify.js"></script> <script> KindEditor.ready(function(K) { var editor1 = K.create('textarea[name="content1"]', { cssPath : '../plugins/code/prettify.css', uploadJson : '../jsp/upload_json.jsp', fileManagerJson : '../jsp/file_manager_json.jsp', allowFileManager : true, afterCreate : function() { var self = this; K.ctrl(document, 13, function() { self.sync(); document.forms['example'].submit(); }); K.ctrl(self.edit.doc, 13, function() { self.sync(); document.forms['example'].submit(); }); } }); prettyPrint(); }); </script> </head> <body> <%=htmlData%> <form name="example" method="post" action="demo.jsp"> <textarea name="content1" cols="100" rows="8" style="width:700px;height:200px;visibility:hidden;"><%=htmlspecialchars(htmlData)%></textarea> <br /> <input type="submit" name="button" value="提交内容" /> </form> </body> </html> <%! private String htmlspecialchars(String str) { str = str.replaceAll("&", "&"); str = str.replaceAll("<", "<"); str = str.replaceAll(">", ">"); str = str.replaceAll("\"", """); return str; } %>