1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <form id="addTempletForm" method="post">
- <table class="mytable" style="width: 100%;">
- <tr>
- <th width="15%">模板标题</th>
- <td width="85%" colspan="3" >
- <input class="easyui-validatebox" required="true" type="text" id="title_add" name="templet.title" style="width:545px">
- </td>
- </tr>
-
- <tr>
- <th width="15%">模板类型</th>
- <td width="85%" colspan="3" >
- <select name="templet.templetType" id="templetType_add" class="easyui-validatebox" required="true">
- <option value="">请选择</option>
- </select>
-
- </td>
- </tr>
-
- <tr>
- <th>模板内容</th>
- <td colspan="3">
- <textarea id="editor_content" name="templet.content" rows="20" cols="100" style="width: 95%; height: 400px;"></textarea>
- </td>
- </tr>
- </table>
- </form>
- <script type="text/javascript">
- KindEditor.ready(function(K) {
- var options = {
- //自定义工具栏
- items : [ 'source', 'plainpaste', 'wordpaste', 'preview', '|',
- 'fontname', 'fontsize', '|',
- 'forecolor', 'hilitecolor', 'bold',
- 'italic', 'underline', 'removeformat', '|',
- 'clearhtml', 'selectall','|',
- 'justifyleft', 'justifycenter', 'justifyright',
- 'indent','outdent','insertorderedlist', 'insertunorderedlist', '|',
- 'image', "multiimage", 'insertfile', '|',
- 'table', 'baidumap' ],
- //图片上传Action
- uploadJson : whzl.basePath+'/imgUpload_imgUpload',
-
- //允许网络图片上传
- allowImageRemote : true,
-
- //文件空间Action
- fileManagerJson : whzl.basePath+'/fileManager_fileManager',
-
- //允许展示文件空间
- allowFileManager : true,
-
- //过滤代码样式参数
- filterMode : false,
-
- //kindeditor创建后,将编辑器的内容设置到原来的textarea控件里
- afterCreate : function(){ this.sync(); },
-
- //编辑器聚焦后,将编辑器的内容设置到原来的textarea控件里
- afterBlur: function(){ this.sync(); },
-
- //编辑器内容发生变化后,将编辑器的内容设置到原来的textarea控件里
- afterChange: function(){ this.sync(); }
- };
-
- editor = K.create('#editor_content', options);
- });
-
- </script>
|