|
|
@@ -1,23 +1,23 @@
|
|
|
-<div id="snippet-highlight">
|
|
|
- <h2>Getting started with CKEditor 5</h2>
|
|
|
- <p>First, create an HTML element with the initial content:</p>
|
|
|
-<pre><code class="language-xml"><div id="editor">
|
|
|
+<textarea id="snippet-highlight">
|
|
|
+ <h2>Getting started with CKEditor 5</h2>
|
|
|
+ <p>First, create an HTML element with the initial content:</p>
|
|
|
+<pre><code class="language-xml"><div id="editor">
|
|
|
<p>Here goes the initial content of the editor.</p>
|
|
|
-</div></code></pre>
|
|
|
+</div></code></pre>
|
|
|
|
|
|
-<p>Then use the following code to run the editor:</p>
|
|
|
-<pre><code class="language-javascript">ClassicEditor
|
|
|
+<p>Then use the following code to run the editor:</p>
|
|
|
+<pre><code class="language-javascript">ClassicEditor
|
|
|
.create( document.querySelector( '#editor' ) )
|
|
|
.catch( error => {
|
|
|
console.error( error );
|
|
|
- } );</code></pre>
|
|
|
+ } );</code></pre>
|
|
|
|
|
|
-<p>Finally, let your artistic self shine:</p>
|
|
|
-<pre><code> ________________
|
|
|
+<p>Finally, let your artistic self shine:</p>
|
|
|
+<pre><code> ________________
|
|
|
/ \
|
|
|
| How about moo? | ^__^
|
|
|
\________________/ (oo)\_______
|
|
|
\ (__)\ )\/\
|
|
|
||----w |
|
|
|
- || ||</code></pre>
|
|
|
-</div>
|
|
|
+ || ||</code></pre>
|
|
|
+</textarea>
|