simple.html 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Simple Examples</title>
  6. <style>
  7. form {
  8. margin: 0;
  9. }
  10. textarea {
  11. display: block;
  12. }
  13. </style>
  14. <link rel="stylesheet" href="../themes/default/default.css" />
  15. <script charset="utf-8" src="../kindeditor-min.js"></script>
  16. <script charset="utf-8" src="../lang/zh_CN.js"></script>
  17. <script>
  18. var editor;
  19. KindEditor.ready(function(K) {
  20. editor = K.create('textarea[name="content"]', {
  21. resizeType : 1,
  22. allowPreviewEmoticons : false,
  23. allowImageUpload : false,
  24. items : [
  25. 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
  26. 'removeformat', '|', 'justifyleft', 'justifycenter', 'justifyright', 'insertorderedlist',
  27. 'insertunorderedlist', '|', 'emoticons', 'image', 'link']
  28. });
  29. });
  30. </script>
  31. </head>
  32. <body>
  33. <h3>默认模式</h3>
  34. <form>
  35. <textarea name="content" style="width:700px;height:200px;visibility:hidden;">KindEditor</textarea>
  36. </form>
  37. </body>
  38. </html>