zteditor.htm 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <#def title = "富文本编辑器"/>
  2. <#def keyword = "ZhiqimUI"/>
  3. <#def desc = " 实现源码编辑、撤销、重做、字体样式、文本对齐、超链接、图片上传、复制粘贴等功能。"/>
  4. <#def prevUrl = "drag.htm"/>
  5. <#def nextUrl = "uploadLarge.htm"/>
  6. ${zhiqim_com_header()}
  7. ${zhiqim_com_topnav("document")}
  8. ${Styles.src(context.getRootPath("/src/zteditor/zteditor.css"))}
  9. ${Scripts.src(context.getRootPath("/src/zteditor/zteditor.js"))}
  10. <!--容器开始 -->
  11. <div id="container" class="container">
  12. <!--边导航-->
  13. ${zhiqim_com_ui("tutorial", "ui", "tool", "zteditor")}
  14. <!--主体-->
  15. <div id="mainbody" class="mainbody">
  16. ${zhiqim_com_breadcrumb("文库", "教程", "富文本编辑器")}
  17. <div class="content">
  18. <#-- 标题 -->
  19. <div class="z-relative-left z-w100p z-pd16 z-bg-blue z-px18 z-lh200p z-bold" style="border-left:5px solid #2293e4">
  20. <p class="z-text-blue">富文本编辑器:</p>
  21. <p class="z-color-333" style="text-indent:38px;">
  22. 实现源码编辑、撤销、重做、字体样式、文本对齐、超链接、图片上传、复制粘贴等功能。
  23. </p>
  24. </div>
  25. <#-- 一、示例样式 -->
  26. <div class="tutorial title">一、示例</div>
  27. <table class="z-table z-bordered z-pd10">
  28. <tr bgcolor="#f5f5f5">
  29. <td width="">效果预览</td>
  30. <!--
  31. <td width="50%">代码</td>
  32. -->
  33. </tr>
  34. <tr>
  35. <td class="example">
  36. <script>
  37. Z.onload(function()
  38. {
  39. var editor = new Z.ZhiqimEditor();
  40. editor.setId("test");
  41. editor.setAjaxClass("com.zhiqim.zhiqim.ui.FteUploadImagePresenter");
  42. editor.execute();
  43. });
  44. </script>
  45. <textarea id="test" name="test" class="z-textarea z-w100p z-h500"></textarea>
  46. <button type="button" class="z-button z-mg-t15" onclick='Z("#result").html(Z("#test").val())'>点击查看输入内容</button>
  47. <div class="z-mg-t40 z-mg-b40">
  48. <div>查看结果</div>
  49. <pre id="result"></pre>
  50. </div>
  51. </td>
  52. <!--
  53. <td><pre class="z-text-preline"></pre></td>
  54. -->
  55. </tr>
  56. </table>
  57. ${zhiqim_com_chapter()}
  58. </div>
  59. <!-- 主体结束 -->
  60. </div>
  61. <!-- 容器结束 -->
  62. </div>
  63. ${zhiqim_com_footer()}