code-block.html 798 B

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