width.html 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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 Width</h1>
  24. <p>Set a specific width to the WYSIWYG HTML editor using the <a
  25. href="https://www.froala.com/wysiwyg-editor/docs/options#width" target="_blank" title="width option">width</a>
  26. option.</p>
  27. </div>
  28. </section>
  29. <script type="text/javascript" src="../../js/froala_editor.min.js"></script>
  30. <script type="text/javascript" src="../../js/plugins/link.min.js"></script>
  31. <script>
  32. (function () {
  33. new FroalaEditor("#edit", {
  34. width: 400
  35. })
  36. })()
  37. </script>
  38. </body>
  39. </html>