8
0

code-block.html 721 B

1234567891011121314151617181920212223
  1. <div id="snippet-highlight">
  2. <h2>Getting started with CKEditor 5</h2>
  3. <p>First, create an HTML element with the initial content:</p>
  4. <pre><code class="language-xml"><div id="editor">
  5. &lt;p&gt;Here goes the initial content of the editor.&lt;/p&gt;
  6. </div></code></pre>
  7. <p>Then use the following code to run the editor:</p>
  8. <pre><code class="language-javascript">ClassicEditor
  9. .create( document.querySelector( '#editor' ) )
  10. .catch( error => {
  11. console.error( error );
  12. } );</code></pre>
  13. <p>Finally, let your artistic self shine:</p>
  14. <pre><code> ________________
  15. / \
  16. | How about moo? | ^__^
  17. \________________/ (oo)\_______
  18. \ (__)\ )\/\
  19. ||----w |
  20. || ||</code></pre>
  21. </div>