日期:2014-05-16 浏览次数:20456 次
var imageUploadJson = (typeof KE.g[id].imageUploadJson == 'undefined') ? '../../php/upload_json.php' : KE.g[id].imageUploadJson;
var imageUploadJson = (typeof KE.g[id].imageUploadJson == 'undefined') ? '../../jsp/upload_json.jsp' : KE.g[id].imageUploadJson;
var JSON_URL = '../../php/file_manager_json.php';
var JSON_URL = '../../jsp/file_manager_json.jsp';
<script type="text/javascript"> KE.show({ id : 'content1', allowFileManager : true, afterCreate : function(id) { KE.event.ctrl(document, 13, function() { KE.util.setData(id); document.forms['example'].submit(); }); KE.event.ctrl(KE.g[id].iframeDoc, 13, function() { KE.util.setData(id); document.forms['example'].submit(); }); } }); </script>
<script type="text/javascript"> KE.show({ id : 'content1', allowFileManager : true, imageUploadJson : '${pageContext.request.contextPath}/kindeditor/jsp/upload_json.jsp', fileManagerJson : '${pageContext.request.contextPath}/kindeditor/jsp/file_manager_json.jsp', afterCreate : function(id) { KE.event.ctrl(document, 13, function() { KE.util.setData(id); document.forms['example'].submit(); }); KE.event.ctrl(KE.g[id].iframeDoc, 13, function() { KE.util.setData(id); document.forms['example'].submit(); }); } }); </script>
<%@ page language="java" pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> <html> <head> <script type="text/javascript" charset="utf-8" src="${pageContext.request.contextPath}/kindeditor/kindeditor.js"></script> <script type="text/javascript"> KE.show({ id : 'content1', allowFileManager : true, afterCreate : function(id) { KE.event.ctrl(document, 13, function() { KE.util.setData(id); document.forms['example'].submit(); }); KE.event.ctrl(KE.g[id].iframeDoc, 13, function() { KE.util.setData(id); document.forms['example'].submit(); }); } }); </script> </head> <body> <form action="${pageContext.request.contextPath}/kindeditors" name="example" id="example" method="post"> <TABLE cellSpacing=1 cellPadding=0 width="800" border=0 align="center"> <tr> <td bgcolor="#ffffff" align="center"> 内容 </td> <td bgcolor="#ffffff" align="center"> <textarea id="content1" name="content1" style="width: 700px; height: 400px"></textarea> </td> </tr> <tr> <td align="center" colspan="2"> <input type="submit" value="保存!"> </td> </tr> </TABLE> </form> </body> </html>