ckeditor使用

<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>功能回复管理</title>
<meta name="decorator" content="default"/>
<script type="text/javascript" src="${ctxStatic}/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="${ctxStatic}/ckeditor/config.js"></script>
<script type="text/javascript" src="${ctxStatic}/ckfinder/ckfinder.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#inputForm").validate({
submitHandler: function(form){
loading('正在提交,请稍等...');
form.submit();
},
errorContainer: "#messageBox",
errorPlacement: function(error, element) {
$("#messageBox").text("输入有误,请先更正。");
if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
error.appendTo(element.parent().parent());
} else {
error.insertAfter(element);
}
}
});
});
</script>
</head>
<body>
<ul class="nav nav-tabs">
<li><a href="${ctx}/com/functionReply/">功能回复列表</a></li>
<li class="active">
<a href="${ctx}/com/functionReply/form?id=${functionReply.id}">功能回复
<%-- <shiro:hasPermission name="com:functionReply:edit"> --%>
<%-- ${not empty functionReply.id?'修改':'添加'} --%>
<%-- </shiro:hasPermission> --%>
<%-- <shiro:lacksPermission name="com:functionReply:edit">查看</shiro:lacksPermission> --%>
</a>
</li>
</ul><br/>
<form:form id="inputForm" modelAttribute="functionReply" action="${ctx}/com/functionReply/save" method="post" class="form-horizontal">
<form:hidden path="id"/>
<form:hidden path="funId"/>
<sys:message content="${message}"/>
<!-- <div class="control-group" style="display: none"> -->
<!-- <label class="control-label">功能id:</label> -->
<!-- <div class="controls"> -->
<%-- <form:input path="funId" htmlEscape="false" maxlength="64" class="input-xlarge required"/> --%>
<!-- </div> -->
<!-- </div> -->
<div class="control-group">
<label class="control-label">描述:</label>
<div class="controls">
<form:input path="description" htmlEscape="false" maxlength="64" class="input-xlarge required"/>
<span class="help-inline"><font color="red">*</font> </span>
</div>
</div>
<div class="control-group">
<label class="control-label">内容:</label>
<div class="controls">
<form:textarea path="content" htmlEscape="false" rows="4" maxlength="64" class="input-xxlarge required"/>
<script type="text/javascript">CKEDITOR.replace('content');</script>
<%-- <c:if test="${functionReply.content == '' || functionReply.content == null}"> --%>
<%-- </c:if> --%>
</div>
</div>
<div class="control-group">
<label class="control-label">备注:</label>
<!-- <div class="controls"> -->
<div>
<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="64" class="input-xxlarge "/>
</div>
</div>
<div class="form-actions">
<%-- <shiro:hasPermission name="com:functionReply:edit"> --%>
<input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/>&nbsp;
<%-- </shiro:hasPermission> --%>
<input id="btnCancel" class="btn" type="button" value="返 回" οnclick="history.go(-1)"/>
</div>
</form:form>
</body>
</html>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值