single.html 989 B

12345678910111213141516171819202122232425
  1. <!DOCTYPE html>
  2. <html style="height: 100%;">
  3. <head>
  4. <meta charset="utf-8">
  5. <script src="https://code.jquery.com/jquery-3.6.0.js"></script>
  6. <script src="https://code.jquery.com/ui/1.12.0/jquery-ui.min.js"></script>
  7. <script src="dist/cdtexteditor.min.js"></script>
  8. <link rel="stylesheet" href="https://code.jquery.com/ui/1.12.0/themes/smoothness/jquery-ui.css">
  9. <link rel="stylesheet" href="dist/cdtexteditor.min.css">
  10. <title>CDTextEditor Demo (Single editor)</title>
  11. </head>
  12. <body id="workbench" style="margin: 0; padding: 0; min-height: 100%;">
  13. <script>
  14. let editor = new CDTextEditor("workbench").setup({
  15. predictive: './dist/assets/dict/en_phrases.txt',
  16. spellchecking: {
  17. url: './dist/assets/dict/',
  18. loc: [
  19. 'en_US'
  20. ]
  21. }
  22. });
  23. </script>
  24. </body>
  25. </html>