1:引用css和jsjavascript
css:css
<link href="<%=path%>/css/bootstrap.min.css" rel="stylesheet" type="text/css" />html
<link href="<%=path%>/UEditor/themes/default/css/umeditor.css" rel="stylesheet" />java
js:bootstrap
<div class="form-group" style="clear: both"> <div style="height: 40px;float: left"> <span class="input-title font4"><span style="color:#FF0000;">*</span> <span style="color:#333333;"> </span>活動詳情</span> </div> <div style="float: left"> <!--style給定寬度能夠影響編輯器的最終寬度--> <script type="text/plain" id="editorActivityDetail" style="width:90%;height:240px;"> <p>這裏我能夠寫一些輸入提示</p> </script> <script type="text/javascript" charset="utf-8" src="<%=path %>/UEditor/umeditor.config.js"></script> <script type="text/javascript" charset="utf-8" src="<%=path %>/UEditor/umeditor.min.js"></script> <script type="text/javascript" src="<%=path %>/UEditor/lang/zh-cn/zh-cn.js"></script> <script type="text/javascript"> //實例化編輯器 $(function(){ var um = UM.getEditor('editorActivityDetail'); um.setContent("${activity.activityDetail}"); }); </script> </div> <div class="activityDetailError" style="display:none;clear: both"> <span class="error">請輸入活動詳情</span> </div> </div>