height.html 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. <style>
  10. body {
  11. text-align: center;
  12. }
  13. section {
  14. width: 81%;
  15. margin: auto;
  16. text-align: left;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <section id="editor">
  22. <div id='edit' style="margin-top: 30px;">
  23. <h1>Predefined Height</h1>
  24. <p>Set a specific height to the WYSIWYG HTML editor using the <a
  25. href="https://www.froala.com/wysiwyg-editor/docs/options#height" target="_blank"
  26. title="height option">height</a> option. If the text inside is longer, then the rich text editor will get a
  27. vertical scrollbar.</p>
  28. </div>
  29. </section>
  30. <script type="text/javascript" src="../../js/froala_editor.min.js"></script>
  31. <script type="text/javascript" src="../../js/plugins/link.min.js"></script>
  32. <script>
  33. (function () {
  34. new FroalaEditor("#edit", {
  35. height: 300
  36. })
  37. })()
  38. </script>
  39. </body>
  40. </html>