Bläddra i källkod

Docs: Workaround a bug in Umberto which tries to highlight code inside CKEditor 5's source by using a textarea.

Piotrek Koszuliński 6 år sedan
förälder
incheckning
a329bccede
1 ändrade filer med 12 tillägg och 12 borttagningar
  1. 12 12
      packages/ckeditor5-code-block/docs/_snippets/features/code-block.html

+ 12 - 12
packages/ckeditor5-code-block/docs/_snippets/features/code-block.html

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