templetUpdate.jsp 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <%@ page language="java" contentType="text/html; charset=UTF-8"
  2. pageEncoding="UTF-8"%>
  3. <form id="updateTempletForm" method="post">
  4. <table class="mytable" style="width: 100%;">
  5. <tr>
  6. <th width="15%">标题</th>
  7. <td width="85%" colspan="3" >
  8. <input type="hidden" id="id_update" name="templet.id"/>
  9. <input class="easyui-validatebox" required="true" type="text" id="title_update" name="templet.title" style="width:545px">
  10. </td>
  11. </tr>
  12. <tr>
  13. <th width="15%">模板类型</th>
  14. <td width="85%" colspan="3" >
  15. <select name="templet.templetType" id="templetType_update" class="easyui-validatebox" required="true">
  16. <option value="">请选择</option>
  17. </select>
  18. </td>
  19. </tr>
  20. <tr>
  21. <th>内容</th>
  22. <td colspan="3">
  23. <textarea id="editor_content2" name="templet.content" rows="20" cols="100" style="width: 95%; height: 400px;"></textarea>
  24. </td>
  25. </tr>
  26. </table>
  27. </form>
  28. <script type="text/javascript">
  29. KindEditor.ready(function(K) {
  30. var options = {
  31. //自定义工具栏
  32. items : [ 'source', 'plainpaste', 'wordpaste', 'preview', '|',
  33. 'fontname', 'fontsize', '|',
  34. 'forecolor', 'hilitecolor', 'bold',
  35. 'italic', 'underline', 'removeformat', '|',
  36. 'clearhtml', 'selectall','|',
  37. 'justifyleft', 'justifycenter', 'justifyright',
  38. 'indent','outdent','insertorderedlist', 'insertunorderedlist', '|',
  39. 'image', "multiimage", 'insertfile', '|',
  40. 'table', 'baidumap' ],
  41. //图片上传Action
  42. uploadJson : whzl.basePath+'/imgUpload_imgUpload',
  43. //允许网络图片上传
  44. allowImageRemote : true,
  45. //文件空间Action
  46. fileManagerJson : whzl.basePath+'/FileManager_fileManager',
  47. //允许展示文件空间
  48. allowFileManager : true,
  49. //过滤代码样式参数
  50. filterMode : false,
  51. //kindeditor创建后,将编辑器的内容设置到原来的textarea控件里
  52. afterCreate : function(){this.sync();},
  53. //编辑器聚焦后,将编辑器的内容设置到原来的textarea控件里
  54. afterBlur: function(){this.sync();},
  55. //编辑器内容发生变化后,将编辑器的内容设置到原来的textarea控件里
  56. afterChange: function(){this.sync();}
  57. };
  58. editor_up = K.create('#editor_content2', options);
  59. });
  60. </script>