Parcourir la source

Fix div samples in the docs.

Maciej Gołaszewski il y a 6 ans
Parent
commit
b136337836

+ 1 - 1
README.md

@@ -63,7 +63,7 @@ Creating an editor using a CKEditor 5 build is very simple and can be described
 In your HTML page add an element that CKEditor should replace:
 
 ```html
-<div name="content" id="editor"></div>
+<div id="editor"></div>
 ```
 
 Load the classic editor build (you can choose between [CDN](https://cdn.ckeditor.com/#ckeditor5), [npm](https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/installation.html#npm) and [zip downloads](https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/installation.html#zip-download)):

+ 4 - 4
docs/builds/guides/integration/basic-api.md

@@ -30,8 +30,8 @@ Regardless of the chosen build, creating an editor is done using the static `cre
 Add an element that CKEditor should replace to your HTML page:
 
 ```html
-<div name="content" id="editor">
-	&lt;p&gt;Here goes the initial content of the editor.&lt;/p&gt;
+<div id="editor">
+	<p>Here goes the initial content of the editor.</p>
 </div>
 ```
 
@@ -56,7 +56,7 @@ Similarly to the previous example, add an element where CKEditor should initiali
 
 ```html
 <div id="editor">
-	&lt;p&gt;Here goes the initial content of the editor.&lt;/p&gt;
+	<p>Here goes the initial content of the editor.</p>
 </div>
 ```
 
@@ -81,7 +81,7 @@ Add an element where CKEditor should initialize to your page:
 
 ```html
 <div id="editor">
-	&lt;p&gt;Here goes the initial content of the editor.&lt;/p&gt;
+	<p>Here goes the initial content of the editor.</p>
 </div>
 ```
 

+ 3 - 3
docs/builds/guides/quick-start.md

@@ -22,7 +22,7 @@ Creating an editor using a CKEditor 5 build is very simple and can be described
 In your HTML page add an element that CKEditor should replace:
 
 ```html
-<div name="content" id="editor"></div>
+<div id="editor"></div>
 ```
 
 Load the classic editor build (here [CDN](https://cdn.ckeditor.com/) location is used):
@@ -55,8 +55,8 @@ Call the {@link module:editor-classic/classiceditor~ClassicEditor#create `Classi
 </head>
 <body>
 	<h1>Classic editor</h1>
-	<div name="content" id="editor">
-		&lt;p&gt;This is some sample content.&lt;/p&gt;
+	<div id="editor">
+		<p>This is some sample content.</p>
 	</div>
 	<script>
 		ClassicEditor