font-awesome-5-css.html 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 href="https://use.fontawesome.com/releases/v5.0.8/css/all.css" rel="stylesheet">
  7. <link rel="stylesheet" href="../../css/froala_editor.pkgd.css">
  8. <!-- Code Mirror CSS file. -->
  9. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.3.0/codemirror.min.css">
  10. <!-- Include the plugin CSS file. -->
  11. <link rel="stylesheet" href="../../css/plugins/code_view.css">
  12. <style>
  13. body {
  14. text-align: center;
  15. }
  16. div#editor {
  17. width: 81%;
  18. margin: auto;
  19. text-align: left;
  20. }
  21. .atwho-view-ul {
  22. text-align: left;
  23. }
  24. </style>
  25. </head>
  26. <body>
  27. <div id="editor">
  28. <div id="edit" style="margin-top: 30px;">
  29. <h1>Code Mirror</h1>
  30. <img class="fr-fir fr-dii" src="../../img/photo1.jpg" alt="Old Clock" width="300" />Click the Code View button to
  31. see the editor content's HTML.
  32. <p>The code_view.min.js plugin can be used as is or you can use also use it together with Code Mirror. All there
  33. is to be done is to include the corresponding Code Mirror CSS and JS files.</p>
  34. </div>
  35. </div>
  36. <script type="text/javascript"
  37. src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.3.0/codemirror.min.js"></script>
  38. <script type="text/javascript"
  39. src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.3.0/mode/xml/xml.min.js"></script>
  40. <script type="text/javascript" src="../../js/froala_editor.pkgd.min.js"></script>
  41. <script>
  42. (function () {
  43. const editorInstance = new FroalaEditor('#edit', {
  44. iconsTemplate: 'font_awesome_5'
  45. })
  46. })()
  47. </script>
  48. </body>
  49. </html>