ckeditor-cjs-version.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <h2>The toolbar</h2>
  2. <div class="toolbar-container"></div>
  3. <h2>The editable</h2>
  4. <div class="editable-container">
  5. <div id="editor">
  6. <h2>About CKEditor&nbsp;5</h2>
  7. <p>This is <a href="https://ckeditor.com">CKEditor&nbsp;5</a>.</p>
  8. <figure class="image">
  9. <img src="./sample.jpg" alt="Autumn fields" />
  10. </figure>
  11. <p>After more than 2 years of building the next generation editor from scratch and closing over 980 tickets,
  12. we created a highly <strong>extensible and flexible architecture</strong> which consists of an <strong>amazing
  13. editing framework</strong> and <strong>editing solutions</strong> that will be built on top of it.</p>
  14. <p>We explained this design choice in
  15. <a href="https://medium.com/content-uneditable/ckeditor-5-the-future-of-rich-text-editing-2b9300f9df2c">&ldquo;CKEditor 5:
  16. The future of rich text editing&ldquo;</a>:</p>
  17. <blockquote><p>(…) we are changing our approach with CKEditor 5. We will no longer have only two solutions
  18. available, instead CKEditor will be seen as a framework for editing solutions. At the same time, we will be
  19. developing several out-of-the-box solutions based on it, which will be available to use in many different contexts.
  20. It will be a real “one size fits all” approach, from little requirements, to super advanced full featured
  21. applications.</p></blockquote>
  22. <h3>Notes</h3>
  23. <p><a href="https://ckeditor.com">CKEditor&nbsp;5</a> is <i>under heavy development</i> and this demo
  24. is not production-ready software. For example:</p>
  25. <ul>
  26. <li><strong>Only Chrome, Opera and Safari are supported</strong>.</li>
  27. <li>Firefox requires enabling the
  28. <a href="https://developer.mozilla.org/en-US/docs/Web/API/Document/onselectionchange">
  29. &ldquo;dom.select_events.enabled&rdquo;</a> option.</li>
  30. <li><a href="https://github.com/ckeditor/ckeditor5/issues/342">Support for pasting</a>
  31. is under development (content filtering is unstable).</li>
  32. </ul>
  33. <p>It has <em>bugs</em> that we are aware of &mdash; and that we will be working on in the next few
  34. iterations of the project. Stay tuned for some updates soon!</p>
  35. </div>
  36. </div>
  37. <style>
  38. .editable-container,
  39. .toolbar-container {
  40. position: relative;
  41. border: 1px solid #ddd;
  42. background: #eee;
  43. }
  44. .toolbar-container {
  45. padding: 1em;
  46. }
  47. .editable-container {
  48. padding: 3em;
  49. overflow-y: scroll;
  50. max-height: 500px;
  51. }
  52. .editable-container > .ck-editor__editable {
  53. min-height: 21cm;
  54. padding: 2em;
  55. border: 1px #D3D3D3 solid;
  56. border-radius: var(--ck-border-radius);
  57. background: white;
  58. box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  59. }
  60. </style>