ソースを参照

Remove mentions of a <textarea> element from guides.

Maciej Gołaszewski 6 年 前
コミット
834c66bafa

+ 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
-<textarea name="content" id="editor"></textarea>
+<div name="content" 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)):

+ 2 - 2
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:
 
 ```html
-<textarea name="content" id="editor">
+<div name="content" id="editor">
 	&lt;p&gt;Here goes the initial content of the editor.&lt;/p&gt;
-</textarea>
+</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}:

+ 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
-<textarea name="content" id="editor"></textarea>
+<div name="content" id="editor"></div>
 ```
 
 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>
 <body>
 	<h1>Classic editor</h1>
-	<textarea name="content" id="editor">
+	<div name="content" id="editor">
 		&lt;p&gt;This is some sample content.&lt;/p&gt;
-	</textarea>
+	</div>
 	<script>
 		ClassicEditor
 			.create( document.querySelector( '#editor' ) )