Преглед изворни кода

Docs: Removed mentions of a `<textarea>` element from guides. Closes #1806.

Marek Lewandowski пре 6 година
родитељ
комит
04ec23204a
3 измењених фајлова са 10 додато и 10 уклоњено
  1. 1 1
      README.md
  2. 5 5
      docs/builds/guides/integration/basic-api.md
  3. 4 4
      docs/builds/guides/quick-start.md

+ 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:
 In your HTML page add an element that CKEditor should replace:
 
 
 ```html
 ```html
-<textarea name="content" id="editor"></textarea>
+<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)):
 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)):

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

@@ -30,9 +30,9 @@ 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:
 Add an element that CKEditor should replace to your HTML page:
 
 
 ```html
 ```html
-<textarea name="content" id="editor">
-	&lt;p&gt;Here goes the initial content of the editor.&lt;/p&gt;
-</textarea>
+<div id="editor">
+	<p>Here goes the initial content of the editor.</p>
+</div>
 ```
 ```
 
 
 Then call {@link module:editor-classic/classiceditor~ClassicEditor#create `ClassicEditor.create()`} to **replace** the `<textarea>` element with a {@link builds/guides/overview#classic-editor Classic editor}:
 Then call {@link module:editor-classic/classiceditor~ClassicEditor#create `ClassicEditor.create()`} to **replace** the `<textarea>` element with a {@link builds/guides/overview#classic-editor Classic editor}:
@@ -56,7 +56,7 @@ Similarly to the previous example, add an element where CKEditor should initiali
 
 
 ```html
 ```html
 <div id="editor">
 <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>
 </div>
 ```
 ```
 
 
@@ -81,7 +81,7 @@ Add an element where CKEditor should initialize to your page:
 
 
 ```html
 ```html
 <div id="editor">
 <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>
 </div>
 ```
 ```
 
 

+ 4 - 4
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:
 In your HTML page add an element that CKEditor should replace:
 
 
 ```html
 ```html
-<textarea name="content" id="editor"></textarea>
+<div id="editor"></div>
 ```
 ```
 
 
 Load the classic editor build (here [CDN](https://cdn.ckeditor.com/) location is used):
 Load the classic editor build (here [CDN](https://cdn.ckeditor.com/) location is used):
@@ -55,9 +55,9 @@ Call the {@link module:editor-classic/classiceditor~ClassicEditor#create `Classi
 </head>
 </head>
 <body>
 <body>
 	<h1>Classic editor</h1>
 	<h1>Classic editor</h1>
-	<textarea name="content" id="editor">
-		&lt;p&gt;This is some sample content.&lt;/p&gt;
-	</textarea>
+	<div id="editor">
+		<p>This is some sample content.</p>
+	</div>
 	<script>
 	<script>
 		ClassicEditor
 		ClassicEditor
 			.create( document.querySelector( '#editor' ) )
 			.create( document.querySelector( '#editor' ) )