search-replace.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html lang="zh">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Search / Replace - 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. </head>
  10. <body>
  11. <div id="layout">
  12. <header>
  13. <h1>Search / Replace</h1>
  14. <p>Search: Press Ctrl + F / Command + F</p>
  15. <p>Replace: Press Ctrl + Shift + F / Command + Option + F</p>
  16. <p>Replace All: Press Ctrl + Shift + R / Command + Option + R</p>
  17. </header>
  18. <div id="test-editormd">
  19. <textarea style="display:none;"></textarea>
  20. </div>
  21. </div>
  22. <script src="js/jquery.min.js"></script>
  23. <script src="../editormd.js"></script>
  24. <script type="text/javascript">
  25. var testEditor;
  26. $(function() {
  27. $.get("./test.md", function(md) {
  28. testEditor = editormd("test-editormd", {
  29. width : "90%",
  30. height : 720,
  31. markdown : "#### Setting\r\n\r\n {\n searchReplace : true // default true\n }\r\n\r\n" + md,
  32. searchReplace : true, // default true
  33. htmlDecode : true,
  34. tex : true,
  35. taskList : true,
  36. emoji : true,
  37. flowChart : true,
  38. sequenceDiagram : true,
  39. path : '../lib/'
  40. });
  41. });
  42. });
  43. </script>
  44. </body>
  45. </html>