line_breaker.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  5. <link rel="stylesheet"
  6. href="https://cdnjs.cloudflare.com/ajax/libs/material-design-iconic-font/2.0.2/css/material-design-iconic-font.min.css">
  7. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.4.0/css/font-awesome.min.css">
  8. <link rel="stylesheet" href="../../css/froala_editor.css">
  9. <link rel="stylesheet" href="../../css/froala_style.css">
  10. <link rel="stylesheet" href="../../css/plugins/table.css">
  11. <link rel="stylesheet" href="../../css/plugins/line_breaker.css">
  12. <style>
  13. body {
  14. text-align: center;
  15. }
  16. section {
  17. width: 81%;
  18. margin: auto;
  19. text-align: left;
  20. }
  21. </style>
  22. </head>
  23. <body>
  24. <section id="editor">
  25. <div id='edit' style="margin-top: 30px;">
  26. <h1>Line Breaker</h1>
  27. <p>Using the <code>line_breaker.min.js</code> plugin it is possible to insert a new paragraph between HTML
  28. elements where the cursor cannot be placed.</p>
  29. <p>There are 2 options related to the line breaker:</p>
  30. <ul>
  31. <li><a href="https://www.froala.com/wysiwyg-editor/v2.0/docs/options#lineBreakerTags"
  32. title="lineBreakerTags option" target="_blank">lineBreakerTags</a> - the list of HTML tags between which the
  33. line-breaker should appear.</li>
  34. <li><a href="https://www.froala.com/wysiwyg-editor/v2.0/docs/options#lineBreakerOffset"
  35. title="lineBreakerOffset option" target="_blank">lineBreakerOffset</a> - the distance in pixels from the top
  36. or bottom of an element at which to show the line-breaker.</li>
  37. </ul>
  38. <table style="width: 100%;">
  39. <tbody>
  40. <tr>
  41. <td style="width: 25%;"></td>
  42. <td style="width: 25%;">
  43. <table style="width: 100%;">
  44. <tbody>
  45. <tr>
  46. <td style="width: 50%;"></td>
  47. <td style="width: 50%;"></td>
  48. </tr>
  49. <tr>
  50. <td style="width: 50%;"></td>
  51. <td style="width: 50%;"></td>
  52. </tr>
  53. </tbody>
  54. </table>
  55. </td>
  56. <td style="width: 25%;"></td>
  57. <td style="width: 25%;"></td>
  58. </tr>
  59. <tr>
  60. <td style="width: 25%;"></td>
  61. <td style="width: 25%;"></td>
  62. <td style="width: 25%;"></td>
  63. <td style="width: 25%;"></td>
  64. </tr>
  65. </tbody>
  66. </table>
  67. <hr />
  68. <table style="width: 100%;">
  69. <tbody>
  70. <tr>
  71. <td style="width: 25%;"></td>
  72. <td style="width: 25%;"></td>
  73. <td style="width: 25%;"></td>
  74. <td style="width: 25%;"></td>
  75. </tr>
  76. <tr>
  77. <td style="width: 25%;"></td>
  78. <td style="width: 25%;"></td>
  79. <td style="width: 25%;"></td>
  80. <td style="width: 25%;"></td>
  81. </tr>
  82. </tbody>
  83. </table>
  84. </div>
  85. </section>
  86. <script type="text/javascript" src="../../js/froala_editor.min.js"></script>
  87. <script type="text/javascript" src="../../js/plugins/line_breaker.min.js"></script>
  88. <script type="text/javascript" src="../../js/plugins/table.min.js"></script>
  89. <script>
  90. (function () {
  91. new FroalaEditor("#edit")
  92. })()
  93. </script>
  94. </body>
  95. </html>