123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <form id="updateTempletForm" method="post">
- <table class="mytable" style="width: 100%;">
- <tr>
- <th width="15%">标题</th>
- <td width="85%" colspan="3" >
- <input type="hidden" id="id_update" name="templet.id"/>
- <input class="easyui-validatebox" required="true" type="text" id="title_update" name="templet.title" style="width:545px">
- </td>
- </tr>
-
- <tr>
- <th width="15%">模板类型</th>
- <td width="85%" colspan="3" >
- <select name="templet.templetType" id="templetType_update" class="easyui-validatebox" required="true">
- <option value="">请选择</option>
- </select>
-
- </td>
- </tr>
-
- <tr>
- <th>内容</th>
- <td colspan="3">
- <textarea id="editor_content2" 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_up = K.create('#editor_content2', options);
- });
-
- </script>
|