kindeditor提交表单时获取不到HTML内容
<script>KindEditor.ready(function(K){vareditor1=K.create('textarea[name="description"...
<script>
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="description"]', {
cssPath : '../plugins/code/prettify.css',
uploadJson : '../baseData/upload_json.jsp',
fileManagerJson : '../baseData/file_manager_json.jsp',
allowFileManager : true,
});
prettyPrint();
});
</script>
<html:form action="baseData/med.do" method="post" enctype="multipart/form-data" onsubmit="return save();">
<input type="hidden" name="command" value="add" />
<html:hidden property="id"/>
<table border="0" width="750">
<tr>
<%
String htmlData=(String)request.getAttribute("desc")!= null ? (String)request.getAttribute("desc"): "";
%>
<td width="146">详细内容</td>
<td><div class="word">
<html:textarea property="description" cols="100" rows="10" style="width:700px;height:200px;visibility:hidden;"><%=htmlspecialchars(htmlData)%></html:textarea>
<br />
</div></td>
</tr>
<tr>
<td colspan="2" align="center"><html:submit>提交</html:submit></td>
</tr>
</table>
</html:form>
比如我要复制下面这一段内容,
提交后,数据库获取不到HTML内容,怎么解决?谢谢!! 展开
KindEditor.ready(function(K) {
var editor1 = K.create('textarea[name="description"]', {
cssPath : '../plugins/code/prettify.css',
uploadJson : '../baseData/upload_json.jsp',
fileManagerJson : '../baseData/file_manager_json.jsp',
allowFileManager : true,
});
prettyPrint();
});
</script>
<html:form action="baseData/med.do" method="post" enctype="multipart/form-data" onsubmit="return save();">
<input type="hidden" name="command" value="add" />
<html:hidden property="id"/>
<table border="0" width="750">
<tr>
<%
String htmlData=(String)request.getAttribute("desc")!= null ? (String)request.getAttribute("desc"): "";
%>
<td width="146">详细内容</td>
<td><div class="word">
<html:textarea property="description" cols="100" rows="10" style="width:700px;height:200px;visibility:hidden;"><%=htmlspecialchars(htmlData)%></html:textarea>
<br />
</div></td>
</tr>
<tr>
<td colspan="2" align="center"><html:submit>提交</html:submit></td>
</tr>
</table>
</html:form>
比如我要复制下面这一段内容,
提交后,数据库获取不到HTML内容,怎么解决?谢谢!! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询