spell-checker.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, maximum-scale=1.0" />
  6. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
  7. <link rel="stylesheet" href="../../../css/froala_editor.css">
  8. <link rel="stylesheet" href="../../../css/froala_style.css">
  9. <link rel="stylesheet" href="../../../css/plugins/colors.css">
  10. <link rel="stylesheet" href="../../../css/plugins/emoticons.css">
  11. <link rel="stylesheet" href="../../../css/plugins/image_manager.css">
  12. <link rel="stylesheet" href="../../../css/plugins/image.css">
  13. <link rel="stylesheet" href="../../../css/plugins/line_breaker.css">
  14. <link rel="stylesheet" href="../../../css/plugins/table.css">
  15. <link rel="stylesheet" href="../../../css/plugins/char_counter.css">
  16. <link rel="stylesheet" href="../../../css/plugins/video.css">
  17. <link rel="stylesheet" href="../../../css/plugins/fullscreen.css">
  18. <link rel="stylesheet" href="../../../css/plugins/file.css">
  19. <!--<link rel="stylesheet" href="../../../css/plugins/file.css">-->
  20. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/at.js/1.4.0/css/jquery.atwho.min.css">
  21. <!-- Code Mirror CSS file. -->
  22. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.3.0/codemirror.min.css">
  23. <!-- Include the plugin CSS file. -->
  24. <link rel="stylesheet" href="../../../css/plugins/code_view.css">
  25. <link rel="stylesheet" href="../../../css/third_party/spell_checker.min.css">
  26. <style>
  27. body {
  28. text-align: center;
  29. }
  30. div#editor {
  31. width: 81%;
  32. margin: auto;
  33. text-align: left;
  34. }
  35. .atwho-view-ul {
  36. text-align: left;
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <div id="editor">
  42. <div id="edit" style="margin-top: 30px;">
  43. <h1>Spell Checker example</h1>
  44. <img class="fr-fir fr-dii" src="../../../img/photo1.jpg" alt="Old Clock" width="300" />
  45. <p>Below is a text written in Spanish that has typos try the Spell Checker to see how it works. The spell checker
  46. it is initialized to use as a spell checking language Spanish.</p>
  47. <p>El plugin spell checker.min.js se puede utilizaro como es o puedee utilizzar también utilizaarlo juntoo con
  48. Code Mirror.</p>
  49. </div>
  50. </div>
  51. <script type="text/javascript"
  52. src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.3.0/codemirror.min.js"></script>
  53. <script type="text/javascript"
  54. src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.3.0/mode/xml/xml.min.js"></script>
  55. <script type="text/javascript" src="../../../js/froala_editor.min.js"></script>
  56. <script type="text/javascript" src="../../../js/plugins/align.min.js"></script>
  57. <script type="text/javascript" src="../../../js/plugins/code_beautifier.min.js"></script>
  58. <script type="text/javascript" src="../../../js/plugins/code_view.min.js"></script>
  59. <script type="text/javascript" src="../../../js/plugins/font_size.min.js"></script>
  60. <script type="text/javascript" src="../../../js/plugins/font_family.min.js"></script>
  61. <script type="text/javascript" src="../../../js/plugins/image.min.js"></script>
  62. <script type="text/javascript" src="../../../js/plugins/image_manager.min.js"></script>
  63. <script type="text/javascript" src="../../../js/plugins/link.min.js"></script>
  64. <script type="text/javascript" src="../../../js/plugins/lists.min.js"></script>
  65. <script type="text/javascript" src="../../../js/plugins/paragraph_format.min.js"></script>
  66. <script type="text/javascript" src="../../../js/plugins/url.min.js"></script>
  67. <script type="text/javascript" src="../../../js/plugins/entities.min.js"></script>
  68. <script type="text/javascript" src="../../../js/plugins/save.min.js"></script>
  69. <script type="text/javascript" src="../../../js/third_party/spell_checker.min.js"></script>
  70. <script>
  71. (function () {
  72. new FroalaEditor("#edit", {
  73. scaytAutoload: true,
  74. scaytOptions: {
  75. enableOnTouchDevices: false,
  76. localization: 'en',
  77. extraModules: 'ui',
  78. DefaultSelection: 'American English',
  79. spellcheckLang: 'en_US',
  80. contextMenuSections: 'suggest|moresuggest',
  81. serviceProtocol: 'https',
  82. servicePort: '80',
  83. serviceHost: 'svc.webspellchecker.net',
  84. servicePath: 'spellcheck/script/ssrv.cgi',
  85. contextMenuForMisspelledOnly: true,
  86. scriptPath: 'https://svc.webspellchecker.net/spellcheck31/lf/scayt3/customscayt/customscayt.js'
  87. }
  88. })
  89. })()
  90. </script>
  91. </body>
  92. </html>