multi-editormd.html 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Multi Editor.md - Editor.md examples</title>
  6. <link rel="stylesheet" href="css/style.css" />
  7. <link rel="stylesheet" href="../css/editormd.css" />
  8. <link rel="shortcut icon" href="https://pandao.github.io/editor.md/favicon.ico" type="image/x-icon" />
  9. <style>
  10. h3 {
  11. width : 90%;
  12. margin: 0 auto 15px;
  13. }
  14. .editormd {
  15. margin: 20px auto;
  16. }
  17. </style>
  18. </head>
  19. <body>
  20. <div id="layout">
  21. <header>
  22. <h1>Multi Editor.md</h1>
  23. <p>多个 Editor.md 并存</p>
  24. <br/>
  25. </header>
  26. <h3>Editor.md A</h3>
  27. <div id="test-editormd"></div>
  28. <h3>Editor.md B</h3>
  29. <div id="test-editormd2"></div>
  30. <h3>Editor.md C</h3>
  31. <div id="test-editormd3"></div>
  32. </div>
  33. <script src="js/jquery.min.js"></script>
  34. <script src="../editormd.js"></script>
  35. <script type="text/javascript">
  36. var testEditormd, testEditormd2;
  37. $(function() {
  38. testEditormd = editormd("test-editormd", {
  39. width: "90%",
  40. height: 480,
  41. markdown : "#### Editor.md A",
  42. path : '../lib/'
  43. });
  44. testEditormd2 = editormd("test-editormd2", {
  45. width: "90%",
  46. height: 480,
  47. markdown : "#### Editor.md B",
  48. path : '../lib/'
  49. });
  50. testEditormd3 = editormd("test-editormd3", {
  51. width: "90%",
  52. height: 480,
  53. markdown : "#### Editor.md C",
  54. path : '../lib/'
  55. });
  56. });
  57. </script>
  58. </body>
  59. </html>