index.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>CKEditor 5 - Build Classic Sample</title>
  6. <style>
  7. @import url(https://fonts.googleapis.com/css?family=Roboto:300,400);
  8. body, html {
  9. margin: 0;
  10. padding: 0;
  11. font-size: 16px;
  12. line-height: 1.5;
  13. text-align: center;
  14. font-family: 'Roboto', sans-serif;
  15. background: url( ./bg.jpg ) calc(50% + 100px) top no-repeat #201F24;
  16. color: #fff;
  17. font-weight: 300;
  18. }
  19. h1,
  20. h2 {
  21. font-weight: 300;
  22. }
  23. a {
  24. color: #88d01c;
  25. text-decoration: none;
  26. }
  27. a:hover {
  28. text-decoration: underline;
  29. }
  30. header h1,
  31. main,
  32. footer {
  33. padding: 0 1em;
  34. }
  35. /* ---- CKEditor --------------------------------------------------- */
  36. main .ck-editor .ck-editor__editable_inline {
  37. color: #333;
  38. }
  39. main .ck-editor,
  40. main .message {
  41. position: relative;
  42. z-index: 1;
  43. max-width: 720px;
  44. margin: 0 auto;
  45. text-align: left;
  46. }
  47. main .ck-editor .ck-editor__editable_inline {
  48. padding: 1em 2em;
  49. }
  50. .ck-editor .ck-editor__editable_inline h2,
  51. .ck-editor .ck-editor__editable_inline h3,
  52. .ck-editor .ck-editor__editable_inline h4,
  53. .ck-editor .ck-editor__editable_inline strong {
  54. font-weight: 400;
  55. }
  56. .ck-editor .ck-widget.ck-widget_selected,
  57. .ck-editor .ck-widget.ck-widget_selected:hover {
  58. outline: 3px solid #69A2DF;
  59. }
  60. .ck-editor .ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected {
  61. outline: 3px solid #DDD;
  62. }
  63. .ck-editor .ck-widget:hover {
  64. outline: 3px solid #FFD25C;
  65. }
  66. /* ---- Footer --------------------------------------------------- */
  67. footer {
  68. overflow: hidden;
  69. margin: 3em 0;
  70. }
  71. footer .copy {
  72. color: #555;
  73. font-size: .8em;
  74. }
  75. footer .copy a {
  76. color: #4a6f12;
  77. }
  78. /* ---- RWD --------------------------------------------------- */
  79. @media only screen and (max-device-width: 800px) {
  80. body, html {
  81. font-size: 150%;
  82. }
  83. /* ---- CKEditor ---------------------------- */
  84. .ck-editor,
  85. .message {
  86. max-width: none;
  87. }
  88. .ck-reset, .ck-reset_all, .ck-reset_all * {
  89. font-size: inherit;
  90. }
  91. }
  92. </style>
  93. </head>
  94. <body>
  95. <main>
  96. <div id="editor">
  97. <h2>About CKEditor&nbsp;5</h2>
  98. <p>This is <a href="https://ckeditor5.github.io">CKEditor&nbsp;5</a>.
  99. </p>
  100. <figure class="image">
  101. <img src="../tests/manual/sample.jpg" alt="Autumn fields"/>
  102. </figure>
  103. <p>After more than 2 years of building the next generation editor from
  104. scratch and closing over 980 tickets, we created a highly <strong>extensible
  105. and flexible architecture</strong> which consists of an <strong>amazing
  106. editing framework</strong> and <strong>editing
  107. solutions</strong> that will be built on top of it.</p>
  108. <h3>Notes</h3>
  109. <p><a href="https://ckeditor5.github.io">CKEditor&nbsp;5</a> is <em>under
  110. heavy development</em> and this demo is not production-ready
  111. software. For example:</p>
  112. <ul>
  113. <li><strong>Only Chrome, Opera and Safari are supported</strong>.
  114. </li>
  115. <li>Firefox requires enabling the <a
  116. href="https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectionchange">&ldquo;dom.select_events.enabled&rdquo;</a>
  117. option.
  118. </li>
  119. <li><a href="https://github.com/ckeditor/ckeditor5/issues/342">Support
  120. for pasting</a> is under development (content filtering is
  121. unstable).
  122. </li>
  123. </ul>
  124. <p>It has <em>bugs</em> that we are aware of &mdash; and that we
  125. will be working on in the next few iterations of the project. Stay
  126. tuned for some updates soon!</p>
  127. </div>
  128. </main>
  129. <footer>
  130. <p class="copy">
  131. Copyright &copy; 2003-2017, <a href="http://cksource.com">CKSource</a> &ndash;
  132. Frederico Knabben.
  133. All rights reserved.
  134. </p>
  135. </footer>
  136. <script src="../build/ckeditor.js"></script>
  137. <script>
  138. ClassicEditor.create( document.querySelector( '#editor' ) )
  139. .then( editor => {
  140. window.editor = editor;
  141. } )
  142. .catch( err => {
  143. console.error( err.stack );
  144. } );
  145. </script>
  146. </body>
  147. </html>